pull the timeout from the context, that's what it is there for.
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user