diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-06-02 11:58:04 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-06-02 11:58:04 +0000 |
commit | 5470b9aa73d4cb26f08763cd0165d68623f104cb (patch) | |
tree | f1e6dd61e854bb88128b4d707bcb32c7e43b41ac /ares/CHANGES | |
parent | 050bd7dd0bb089f24325db241a942d1a39559b5d (diff) |
William Ahern:
Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a
read event can come back from poll() on a valid SOCK_DGRAM socket but
recv(2) will still block. This patch doesn't ignore EAGAIN in
read_udp_packets(), though maybe it should. (This patch was edited by Daniel
Stenberg and a new configure test was added (imported from curl's configure)
to properly detect what non-blocking socket approach to use.)
Diffstat (limited to 'ares/CHANGES')
-rw-r--r-- | ares/CHANGES | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ares/CHANGES b/ares/CHANGES index cb1fdac24..678319dad 100644 --- a/ares/CHANGES +++ b/ares/CHANGES @@ -4,6 +4,13 @@ - William Ahern: + Make UDP sockets non-blocking. I've confirmed that at least on Linux 2.4 a + read event can come back from poll() on a valid SOCK_DGRAM socket but + recv(2) will still block. This patch doesn't ignore EAGAIN in + read_udp_packets(), though maybe it should. (This patch was edited by Daniel + Stenberg and a new configure test was added (imported from curl's configure) + to properly detect what non-blocking socket approach to use.) + I'm not quite sure how this was happening, but I've been seeing PTR queries which seem to return empty responses. At least, they were empty when calling ares_expand_name() on the record. Here's a patch which guarantees to |