You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2004/12/13 15:05:15 UTC
cvs commit: jakarta-tomcat-connectors/jk/native/common jk_connect.c
mturk 2004/12/13 06:05:15
Modified: jk/native/common jk_connect.c
Log:
Fix zero socket_timeout. We do not support nonblocking sockets for now.
This is only observed if someone sets socket_timeout to zero.
Revision Changes Path
1.32 +4 -1 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.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- jk_connect.c 11 Nov 2004 18:34:36 -0000 1.31
+++ jk_connect.c 13 Dec 2004 14:05:15 -0000 1.32
@@ -146,6 +146,9 @@
if (sock >= 0) {
int ret, len;
if (timeout != -1) {
+ /* do not allow non blocking sockets for now */
+ if (timeout == 0)
+ timeout = 60 * 100;
ret = jk_socket_timeout_set(sock, -1, timeout);
if (ret) {
jk_close_socket(sock);
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org