Bug 19696

Summary: libresolv does not enforce timeouts on TCP connections
Product: glibc Reporter: Florian Weimer <fweimer>
Component: networkAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal Flags: fweimer: security-
Priority: P2    
Version: 2.24   
Target Milestone: ---   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1429442
Host: Target:
Build: Last reconfirmed:
Bug Depends on:    
Bug Blocks: 19857    

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
Duplicate.

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