mturk 2005/04/26 23:18:11 Modified: jk/native/common jk_connect.c Log: No need to set the send timeout for read-only operation. Revision Changes Path 1.57 +2 -6 jakarta-tomcat-connectors/jk/native/common/jk_connect.c Index: jk_connect.c =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native/common/jk_connect.c,v retrieving revision 1.56 retrieving revision 1.57 diff -u -r1.56 -r1.57 --- jk_connect.c 27 Apr 2005 06:16:07 -0000 1.56 +++ jk_connect.c 27 Apr 2005 06:18:11 -0000 1.57 @@ -491,15 +491,11 @@ #if defined(WIN32) setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const char *) &tmout, sizeof(int)); - setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, - (const char *) &tmout, sizeof(int)); -#elif defined(SO_RCVTIMEO) && defined(USE_SO_RCVTIMEO) && defined(SO_SNDTIMEO) && defined(USE_SO_SNDTIMEO) +#elif defined(SO_RCVTIMEO) && defined(USE_SO_RCVTIMEO) tv.tv_sec = SECONDS_TO_LINGER; tv.tv_usec = 0; setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, (const void *) &tv, sizeof(tv)); - setsockopt(s, SOL_SOCKET, SO_SNDTIMEO, - (const void *) &tv, sizeof(tv)); #endif /* Read all data from the peer until we reach "end-of-file" (FIN * from peer) or we've exceeded our overall timeout. If the client does
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]