You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by co...@apache.org on 2003/04/11 03:37:01 UTC
cvs commit: jakarta-tomcat-connectors/jk/native2/common jk_channel_socket.c
costin 2003/04/10 18:37:01
Modified: jk/native2/common jk_channel_socket.c
Log:
Quick fix for big port numbers.
We should change the port to unsigned.
Revision Changes Path
1.52 +7 -4 jakarta-tomcat-connectors/jk/native2/common/jk_channel_socket.c
Index: jk_channel_socket.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/common/jk_channel_socket.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -r1.51 -r1.52
--- jk_channel_socket.c 13 Mar 2003 18:23:34 -0000 1.51
+++ jk_channel_socket.c 11 Apr 2003 01:37:01 -0000 1.52
@@ -91,7 +91,7 @@
int ndelay;
struct sockaddr_in addr;
char *host;
- short port;
+ short port; /* Should be unsigned - big ports will fail */
int keepalive;
int timeout;
};
@@ -209,10 +209,13 @@
}
}
-
- if( socketInfo->port<=0 )
- socketInfo->port=8009;
+ /* error if port= 40009 ( for example */
+ /*
+ if( socketInfo->port<=0 )
+ socketInfo->port=8009;
+ */
+
if( socketInfo->host==NULL )
socketInfo->host=DEFAULT_HOST;
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org