tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "NormW" <no...@bocnet.com.au>
Subject Re: [PATCH] ./native2/common/jk_channel_apr_socket.c - use apr_port_t instead of short for port
Date Sun, 01 Feb 2004 23:24:20 GMT
Good morning All.
This would also allow closing of Bug 17579 since the recent changeover to
APR for mod_jk2 (now using jk_channel_apr_socket.c)

Norm

> 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
>
>


---------------------------------------------------------------------
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