tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From G√ľnter Knauf <efl...@gmx.net>
Subject [PATCH] mod_jk2 limited to 15 bit port number
Date Sat, 31 Jan 2004 01:41:01 GMT
Hi,
a user just found that the port number is limited to less than 32768 with mod_jk2;
the patch below solves this:
http://www.gknw.com/test/jk_channel_apr_socket.c.diff

==============================================================================
--- ./native2/common/jk_channel_apr_socket.c.orig	Thu Jan 29 18:23:28 2004
+++ ./native2/common/jk_channel_apr_socket.c	Sat Jan 31 01:45:56 2004
@@ -74,9 +74,9 @@
  */
 struct jk_channel_apr_private {
     int ndelay;
+    apr_port_t port;
     apr_sockaddr_t *addr;
     char *host;
-    short port;
     int keepalive;
     int timeout;
 };
@@ -168,7 +168,7 @@
     jk_channel_apr_private_t *socketInfo=
         (jk_channel_apr_private_t *)(ch->_privatePtr);
     int rc;
-    short port=socketInfo->port;
+    apr_port_t port=socketInfo->port;
 
     if( socketInfo->host==NULL ) {
         char *localName=ch->mbean->localName;

Guenter.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message