You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by jon * <jo...@clearink.com> on 1999/05/11 04:50:00 UTC

Re: mod_jserv/4340: socket connection to jserv should be bound to host address

The following reply was made to PR mod_jserv/4340; it has been noted by GNATS.

From: "jon *" <jo...@clearink.com>
To: akfullfo@august.com
Cc: apbugs@hyperreal.org, java-apache@list.working-dogs.com
Subject: Re: mod_jserv/4340: socket connection to jserv should be bound to
	 host address
Date: Mon, 10 May 1999 19:46:13 -0700

 >    ret=bind(sock,(struct sockaddr *)&addr,sizeof(struct sockaddr_in));
 
 Hello,
 
 I have tried adding that line and everything stopped working...the diff of
 the code change that I attempted is below. I do see the cannot bind to host
 error in my mod_jserv.log file.
 
 I really am not experienced with networking code in C so I'm not sure what
 is going wrong, I'm just trying to see if I can close this bug report.
 
 Any better ideas?
 
 -jon
 
 Index: jserv_ajpv11.c
 ===================================================================
 RCS file: /products/cvs/master/jserv/src/c/jserv_ajpv11.c,v
 retrieving revision 1.24
 diff -r1.24 jserv_ajpv11.c
 101a102,110
 >     ret=bind(sock,(struct sockaddr *)&addr,sizeof(struct sockaddr_in));
 >     if (ret==-1) {
 >         jserv_error(JSERV_LOG_EMERG,cfg,"ajp11: %s %s:%d",
 >                     "can not bind to host",
 >                     inet_ntoa(addr.sin_addr),
 >                     port);
 >         return -1;
 >     }
 >