nginx + default {deferred|bind} = корки

Roxis roxis at list.ru
Tue May 29 20:56:27 MSD 2007


On Tuesday 29 May 2007, Igor Sysoev wrote:
> Прилагаемый патч должее пофиксить segfault.
>
> > >nest tmp # uname -srm
> > >Linux 2.6.20.3-grsec x86_64
> > >
> > >аналогичное поведение при замене deferred на bind
> >
> > на i386 - ругань в логи после попытки запуска
> > 2007/05/29 08:59:28 [emerg] 12979#0: bind() to 127.0.0.1:80 failed (98:
> > Address already in use)
> > 2007/05/29 08:59:28 [emerg] 12979#0: still could not bind()
> >
> > Это вообще нормальное поведение при таком конфиге? Как я понимаю,
> > проблема в неверном порядке bind()
>
> FreeBSD позволяет bind() to 127.0.0.1:80 и *:80 в любом порядке.
> Насчёт Линукса - нужно проверить.

с патчем:

2007/05/29 18:52:14 [alert] 20406#0: changing the listen() backlog to -1 for 
0.0.0.0:80 failed, ignored (98: Address already in use)
2007/05/29 18:52:14 [debug] 20408#0: epoll add event: fd:4 op:1 ev:00000001
2007/05/29 18:52:14 [debug] 20408#0: epoll add event: fd:5 op:1 ev:00000001
2007/05/29 18:52:14 [debug] 20408#0: post event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: delete posted event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: accept on 0.0.0.0:80, ready: 0
2007/05/29 18:52:14 [alert] 20408#0: accept() failed (22: Invalid argument) 
while accepting new connection on 0.0.0.0:80
2007/05/29 18:52:14 [debug] 20408#0: post event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: delete posted event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: accept on 0.0.0.0:80, ready: 0
2007/05/29 18:52:14 [alert] 20408#0: accept() failed (22: Invalid argument) 
while accepting new connection on 0.0.0.0:80
2007/05/29 18:52:14 [debug] 20408#0: post event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: delete posted event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: accept on 0.0.0.0:80, ready: 0
2007/05/29 18:52:14 [alert] 20408#0: accept() failed (22: Invalid argument) 
while accepting new connection on 0.0.0.0:80
2007/05/29 18:52:14 [debug] 20408#0: post event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: delete posted event 080CEEB4
2007/05/29 18:52:14 [debug] 20408#0: accept on 0.0.0.0:80, ready: 0
2007/05/29 18:52:14 [alert] 20408#0: accept() failed (22: Invalid argument) 
while accepting new connection on 0.0.0.0:80

и так до бесконечности, и очень быстро






More information about the nginx-ru mailing list