You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Don Hughes <su...@sannotes.org> on 2001/12/25 20:46:08 UTC

setsockopt error

Apache2.0

If all of my vhosts are of the form:

<VirtualHost *:nn>

and if there is a Listen for a port (81)  that does NOT appear in a VirtualHost 
directive, then I get:

... [crit] (88)Socket operation on non-socket: make_sock: for address [::]:81, 
setsockopt: (SO_REUSEADDR)

...don
support@sannotes.org


Re: setsockopt error

Posted by Jeff Trawick <tr...@attglobal.net>.
"Don Hughes" <su...@sannotes.org> writes:

> Apache2.0
> 
> If all of my vhosts are of the form:
> 
> <VirtualHost *:nn>
> 
> and if there is a Listen for a port (81)  that does NOT appear in a VirtualHost 
> directive, then I get:
> 
> ... [crit] (88)Socket operation on non-socket: make_sock: for address [::]:81, 
> setsockopt: (SO_REUSEADDR)

How many of these things do you have?

I tried:

Listen 8080
Listen 8081
Listen 8082
...
<VirtualHost *:8080>
ServerName jeff.org
</VirtualHost>
<VirtualHost *:8081>
ServerName trawick.org
</VirtualHost>

but didn't hit the error.

Maybe an strace would be interesting to see what file descriptor was
used for the failing SO_REUSEADDR and how the descriptor was allocated?

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Re: setsockopt error

Posted by Don Hughes <su...@sannotes.org>.
Sorry for the delayed reply.

Yes, I am using apachectl.

I just re-tested with the current source, and no longer get the error.


On 25 Dec 2001 at 15:27, Aaron Bannert wrote:

> On Tue, Dec 25, 2001 at 02:46:08PM -0500, Don Hughes wrote:
> > Apache2.0
> > 
> > If all of my vhosts are of the form:
> > 
> > <VirtualHost *:nn>
> > 
> > and if there is a Listen for a port (81)  that does NOT appear in a VirtualHost 
> > directive, then I get:
> > 
> > ... [crit] (88)Socket operation on non-socket: make_sock: for address [::]:81, 
> > setsockopt: (SO_REUSEADDR)
> 
> How are you starting Apache? bin/apachectl?
> 
> -aaron
> 

...don...don
support@sannotes.org


Re: setsockopt error

Posted by Aaron Bannert <aa...@clove.org>.
On Tue, Dec 25, 2001 at 02:46:08PM -0500, Don Hughes wrote:
> Apache2.0
> 
> If all of my vhosts are of the form:
> 
> <VirtualHost *:nn>
> 
> and if there is a Listen for a port (81)  that does NOT appear in a VirtualHost 
> directive, then I get:
> 
> ... [crit] (88)Socket operation on non-socket: make_sock: for address [::]:81, 
> setsockopt: (SO_REUSEADDR)

How are you starting Apache? bin/apachectl?

-aaron

Re: setsockopt error

Posted by Jeff Trawick <tr...@attglobal.net>.
"Don Hughes" <su...@sannotes.org> writes:

> Apache2.0
> 
> If all of my vhosts are of the form:
> 
> <VirtualHost *:nn>
> 
> and if there is a Listen for a port (81)  that does NOT appear in a VirtualHost 
> directive, then I get:
> 
> ... [crit] (88)Socket operation on non-socket: make_sock: for address [::]:81, 
> setsockopt: (SO_REUSEADDR)

I just hit the same error but for a different scenario.  I changed the
port number on my single Listen statement and then did apachectl
restart.
-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...