RHEL: Why does recvfrom() sometimes return EINVAL instead of ETIMEDOUT after a retransmission timeout?

Solution In Progress - Updated -

Issue

  • After deleting a local IP address, an application sent data to an existing connection through that IP address. Therefore TCP retransmissions were invoked, then the retransmission continued until the tcp_retries2 sysctl timeout. If finding the routing cache entry failed after tcp_retries1 boundary or after the garbage collection, this will result in the EINVAL error. After that the application called recvfrom() and the connection and got EINVAL error instead of ETIMEDOUT.

Environment

  • Red Hat Enterprise Linux 6
    • kernel-2.6.32-358.el6

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