pull the timeout from the context, that's what it is there for.

This commit is contained in:
Michael Graff 2000-02-02 23:22:56 +00:00
parent dbeb322610
commit a4987cc031
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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