Unexplained delay in accepting a TCP connection

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content