From a4987cc03171e0ff3e3b07e7aac0f6bde8e09bf2 Mon Sep 17 00:00:00 2001 From: Michael Graff Date: Wed, 2 Feb 2000 23:22:56 +0000 Subject: [PATCH] pull the timeout from the context, that's what it is there for. --- lib/lwres/context.c | 2 +- lib/lwres/context_p.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwres/context.c b/lib/lwres/context.c index fba42c0e3c..1e47536a03 100644 --- a/lib/lwres/context.c +++ b/lib/lwres/context.c @@ -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); diff --git a/lib/lwres/context_p.h b/lib/lwres/context_p.h index d90b019f43..c7a444c40b 100644 --- a/lib/lwres/context_p.h +++ b/lib/lwres/context_p.h @@ -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