Welcome! Log In Create A New Profile

Advanced

Re: 98: Address already in use

Maxim Dounin
April 15, 2011 12:18PM
Hello!

On Thu, Apr 14, 2011 at 10:20:31AM -0400, slowgary wrote:

> The OS is Centos 5.6 (Final)

Looking though linux code and testing on the exactly same centos -
it seems that linux may indeed return EADDRINUSE on listen().

But as far as I see the only situation when it may appear is two
bind()'s on conflicting ports followed by two listen()'s. Second
listen() call will fail with EADDRINUSE.

This shouldn't happen in nginx unless you are running something
with 3rd party patches (or there is some other programm doing
bind()/listen() on the same ports, but this is racy and really
unlikely to be reproduceable).

Could you please show full config (with all listen's - the only
you've provided seems not contain ports you see in complaints at
all...), "nginx -V" output and "nginx -t" output (this should be
identical to "service nginx configtest", but just in case)?

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

98: Address already in use

slowgary April 14, 2011 08:04AM

Re: 98: Address already in use

Maxim Dounin April 14, 2011 10:00AM

Re: 98: Address already in use

slowgary April 14, 2011 10:20AM

Re: 98: Address already in use

slowgary April 14, 2011 11:14AM

Re: 98: Address already in use

Hüseyin Mert April 14, 2011 01:48PM

Re: 98: Address already in use

slowgary April 14, 2011 02:19PM

Re: 98: Address already in use

slowgary April 14, 2011 02:21PM

Re: 98: Address already in use

António P. P. Almeida April 14, 2011 02:42PM

Re: 98: Address already in use

Igor Sysoev April 15, 2011 02:32AM

Re: 98: Address already in use

slowgary April 15, 2011 05:18AM

Re: 98: Address already in use

Maxim Dounin April 15, 2011 12:18PM

Re: 98: Address already in use

slowgary April 18, 2011 01:22PM

Re: 98: Address already in use

slowgary April 19, 2011 09:14AM

Re: 98: Address already in use

Maxim Dounin April 19, 2011 11:22AM

Re: 98: Address already in use

Peleke October 11, 2013 02:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 82
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 214 on March 20, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready