www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bernie Kirby <ber...@ecr.mu.oz.au>
Subject os-solaris/1012: make_sock does a bind before the setsockopt's
Date Tue, 19 Aug 1997 06:20:02 GMT

>Number:         1012
>Category:       os-solaris
>Synopsis:       make_sock does a bind before the setsockopt's
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Mon Aug 18 23:20:01 1997
>Originator:     bernie@ecr.mu.oz.au
>Release:        1.3a1
Sparc, Solaris 2.5.1, SUN's compilers.
If you are using a SOLARIS2 OS, then the code in make_sock (file http_main.c)
calls  sock_bind (s, server);, then proceeds with some setsockopt calls.
The SO_REUSEADDR setsockopt doesn't have any effect on an already bind'd
socket. The problem was not present in 1.2.1.


You can easily replicate the problem by starting the server, then quickly killing
it, then attempting to restart it. You get an error about not being able to
bind to port 80. Of course, you do this on a Solaris system...
Go back to what was in the 1.2.1 release and do the setsockopt's before calling
bind. This is what I've done, and I've not noticed any problems (thus far :-%2

View raw message