Bug 19696 - libresolv does not enforce timeouts on TCP connections
Summary: libresolv does not enforce timeouts on TCP connections
Status: RESOLVED DUPLICATE of bug 19643
Alias: None
Product: glibc
Classification: Unclassified
Component: network (show other bugs)
Version: 2.24
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Blocks: 19857
  Show dependency treegraph
Reported: 2016-02-20 13:48 UTC by Florian Weimer
Modified: 2017-03-06 12:25 UTC (History)
0 users

See Also:
Last reconfirmed:
fweimer: security-


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Weimer 2016-02-20 13:48:12 UTC
The TCP sockets opened by libresolv do not specify timeouts (for connection, sending and receiving).  As a result, connection timeouts take much longer than configured, and applications performing a TCP lookup can hang indefinitely if the TCP connection is severed at the wrong time (without FIN or RST segments being received).

This looks like a fairly important reliability fix.
Comment 1 Florian Weimer 2017-03-06 12:02:43 UTC
The fix should use the new deadline processing functions (see inet/net-internal.h).
Comment 2 Florian Weimer 2017-03-06 12:25:23 UTC

*** This bug has been marked as a duplicate of bug 19643 ***