mirror of
https://github.com/rfc1036/whois.git
synced 2026-08-31 07:30:22 +00:00
openconn: cancel alarm after successful connection
openconn() arms a 60-second alarm before DNS resolution and TCP connect, but never clears it after the connection succeeds. The timer persists through the entire response-reading loop in query_server(), causing premature timeout on slow connections or large whois responses. Call alarm(0) before returning from openconn() so the alarm only covers connection establishment.
This commit is contained in:
parent
1024386831
commit
48795818b2