diff options
author | 2013-03-31 19:42:10 +0000 | |
---|---|---|
committer | 2013-03-31 19:42:10 +0000 | |
commit | 7234c6e9d0836be40599e4e2599514c202b67bb6 (patch) | |
tree | 35139907ba6a573752b01da78f69c1652b222e84 /lib/libc/asr/res_send_async.c | |
parent | Add a couple commas, as suggested by jmc@ (diff) | |
download | wireguard-openbsd-7234c6e9d0836be40599e4e2599514c202b67bb6.tar.xz wireguard-openbsd-7234c6e9d0836be40599e4e2599514c202b67bb6.zip |
Principle of least astonishment: implement nameserver retry/backoff as
in the former resolver.
Diffstat (limited to 'lib/libc/asr/res_send_async.c')
-rw-r--r-- | lib/libc/asr/res_send_async.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/asr/res_send_async.c b/lib/libc/asr/res_send_async.c index 374cc4336c5..b7a37b8f3b4 100644 --- a/lib/libc/asr/res_send_async.c +++ b/lib/libc/asr/res_send_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_send_async.c,v 1.7 2013/03/27 07:40:41 eric Exp $ */ +/* $OpenBSD: res_send_async.c,v 1.8 2013/03/31 19:42:10 eric Exp $ */ /* * Copyright (c) 2012 Eric Faurot <eric@openbsd.org> * @@ -449,8 +449,6 @@ udp_send(struct async *as) if (as->as_fd == -1) return (-1); /* errno set */ - as->as_timeout = as->as_ctx->ac_nstimeout; - n = send(as->as_fd, as->as.dns.obuf, as->as.dns.obuflen, 0); if (n == -1) { save_errno = errno; @@ -528,7 +526,6 @@ tcp_write(struct async *as) as->as_fd = sockaddr_connect(AS_NS_SA(as), SOCK_STREAM); if (as->as_fd == -1) return (-1); /* errno set */ - as->as_timeout = as->as_ctx->ac_nstimeout; return (1); } @@ -584,7 +581,6 @@ tcp_write(struct async *as) } /* More data to write */ - as->as_timeout = as->as_ctx->ac_nstimeout; return (1); close: |