Unexplained delay in accepting a TCP connection
Issue
-
When connecting to a rhel server i am seeing a 3 second delay that is causing production issues in my environment.
-
The accept function was being called out of the libcom.so.3.0.1 library instead of from libc.so.6. The libcom version appears to include a call to select to read from the just accepted socket with a 3 second timeout. An strace of the application shows
10011 17:35:38.313406 accept(3, {sa_family=AF_INET, sin_port=htons(12967), sin_addr=inet_addr("69.63.128.150")}, [16]) = 5 <0.000157>
10011 17:35:38.313807 select(6, [5], NULL, NULL, {3, 0}) = 0 (Timeout) <3.003258>
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
