From: Art Cancro Date: Tue, 2 Nov 1999 19:51:24 +0000 (+0000) Subject: * Fixed timeout problem for remote client sessions (all timeouts were set to X-Git-Tag: v7.86~7467 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=14c6af0d2f09ffd3e4544c70758095bb6bf14647;p=citadel.git * Fixed timeout problem for remote client sessions (all timeouts were set to 1 second ... probably a temporary hack that was missed in the cleanup) --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 2a4104e14..e1e0147de 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,8 @@ $Log$ +Revision 1.410 1999/11/02 19:51:23 ajc +* Fixed timeout problem for remote client sessions (all timeouts were set to + 1 second ... probably a temporary hack that was missed in the cleanup) + Revision 1.409 1999/11/02 03:03:27 ajc * Several fixes to msgbase.c and netproc.c to prevent corrupted incoming network traffic from crashing the server. Reject bad messages. @@ -1413,3 +1417,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/citserver.c b/citadel/citserver.c index 243985722..a2ee6e7e8 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -439,7 +439,7 @@ void cmd_iden(char *argbuf) safestrncpy(CC->cs_clientname, desc, sizeof CC->cs_clientname); CC->cs_clientname[31] = 0; - lprintf(9, "Looking up hostname\n"); + lprintf(9, "Looking up hostname '%s'\n", from_host); if ((strlen(from_host)>0) && (is_public_client(CC->cs_host))) { if (inet_aton(from_host, &addr)) diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 887609b0d..9afd43fec 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -425,7 +425,7 @@ int client_read_to(char *buf, int bytes, int timeout) while(lenclient_socket, &rfds); - tv.tv_sec = 1; + tv.tv_sec = timeout; tv.tv_usec = 0; retval = select( (CC->client_socket)+1,