httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject Re: Windows is able to listen on the same port with multiple servers ?! WAS: RE: cvs commit: httpd-2.0/server listen.c
Date Tue, 05 Feb 2002 17:13:38 GMT
On Tue, 5 Feb 2002, Sander Striker wrote:

> Hi,
> 
> Stupid question time: how does windows hand of something to the right server?
> I thought that the port/ip combination was supposed to be unique.

It doesn't.  Basically, the second server can bind to the port without an
error, but it won't get any normal connections.  In order for the second
server to get a connection, it must be a broadcast connection.  At least,
that is how I am reading the docs.

Ryan

> 
> > rbb@apache.org writes:
> > 
> > > rbb         02/02/04 22:16:04
> > > 
> > >   Modified:    .        STATUS
> > >                server   listen.c
> > >   Log:
> > >   This change keeps the server from allowing multiple instances to bind to
> > >   the same port.  Previously, this was necessary, because the Windows MPM
> > >   was binding to the socket in both the parent and child.  Today's code
> > >   passes the attached socket to the child from the parent, so we don't need
> > >   to re-attach in the child.
> > 
> > what the *&%#...  you broke everybody else (and perhaps Windows in
> > some scenarios) 
> > 
> > -1
> > 
> > This change also prevents a single instance (i.e., normal scenario) to
> > bind to the desired port when an old connection is in TIME_WAIT or some
> > other TCP state.
> > 
> > I can't see any SO_REUSEADDR being done on Unix now and meanwhile I
> > have a continual stream of regression test failures saying:
> > 
> > (98)Address already in use: make_sock: could not bind to address
> >     0.0.0.0:8099
> > no listening sockets available, shutting down
> 
> Very nice.  Great for restarts... Not.
> 
> 
> Sander
> 

-- 

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
550 Jean St
Oakland CA 94610
-------------------------------------------------------------------------------


Mime
View raw message