tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Günter Knauf <efl...@gmx.net>
Subject Re: [PATHCH] ./jk/native/apache-2.0/mod_jk.c
Date Wed, 21 Jan 2004 16:52:18 GMT
oops, take two: forgot to remove the obsolete port var.

# patch for APR 1.0 compatiblity
#
--- mod_jk.c.orig	Wed Nov 05 12:15:18 2003
+++ mod_jk.c	Wed Jan 21 17:39:10 2004
@@ -482,8 +482,6 @@
 {
     request_rec *r      = private_data->r;
 
-    apr_port_t port;
-
     char *ssl_temp      = NULL;
     s->jvm_route        = NULL;    /* Used for sticky session routing */
 
@@ -518,8 +516,7 @@
     s->server_name  = (char *)ap_get_server_name(r);
 
     /* get the real port (otherwise redirect failed) */
-    apr_sockaddr_port_get(&port,r->connection->local_addr);
-    s->server_port = port;
+    s->server_port = r->connection->local_addr->port;
     /* XXX : à la jk2 ???*/
     /* s->server_port  = ap_get_server_port(r); */

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