You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/07/01 21:57:20 UTC

DO NOT REPLY [Bug 20561] - Limitation of availiable high ports for JK2

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20561>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20561

Limitation of availiable high ports for JK2





------- Additional Comments From eric@icky.org  2003-07-01 19:57 -------
The TCP port is defined as a 'short' and is limited to 32767

A quick hack was to tweak jakarta-tomcat-connectors-jk2-2.0.2-
src/jk/native2/common/jk_channel_socket.c

$ diff jk_channel_socket.c.old jk_channel_socket.c.new

94c94
<     short port;
---
>     long port;
110c110
<                                                short port,
---
>                                                long port,
204c204
< static int JK_METHOD jk2_channel_socket_resolve(jk_env_t *env, char
*host, short port,
---
> static int JK_METHOD jk2_channel_socket_resolve(jk_env_t *env, char
*host, long port,

This is being tested now.  At first glance it appears to work.

-e

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