From 7234c6e9d0836be40599e4e2599514c202b67bb6 Mon Sep 17 00:00:00 2001 From: eric Date: Sun, 31 Mar 2013 19:42:10 +0000 Subject: Principle of least astonishment: implement nameserver retry/backoff as in the former resolver. --- lib/libc/asr/res_send_async.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/libc/asr/res_send_async.c') 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 * @@ -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: -- cgit v1.2.3-59-g8ed1b