mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
pull the timeout from the context, that's what it is there for.
This commit is contained in:
parent
dbeb322610
commit
a4987cc031
2 changed files with 2 additions and 2 deletions
|
|
@ -198,7 +198,7 @@ lwres_context_sendrecv(lwres_context_t *ctx,
|
|||
fd_set readfds;
|
||||
struct timeval timeout;
|
||||
|
||||
timeout.tv_sec = LWRES_DEFAULT_TIMEOUT;
|
||||
timeout.tv_sec = ctx->timeout;
|
||||
timeout.tv_usec = 0;
|
||||
|
||||
ret = sendto(ctx->sock, sendbase, sendlen, 0, NULL, 0);
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@
|
|||
#define CTXMALLOC(len) ctx->malloc(ctx->arg, (len))
|
||||
#define CTXFREE(addr, len) ctx->free(ctx->arg, (addr), (len))
|
||||
|
||||
#define LWRES_DEFAULT_TIMEOUT 10 /* 10 seconds for a reply */
|
||||
#define LWRES_DEFAULT_TIMEOUT 20 /* 20 seconds for a reply */
|
||||
|
||||
/*
|
||||
* Not all the attributes here are actually settable by the application at
|
||||
|
|
|
|||
Loading…
Reference in a new issue