The official NGINX Open Source repository.
Go to file
Maxim Dounin da165aae88 Core: disabled SO_REUSEPORT when testing config (ticket #1300).
When closing a socket with SO_REUSEPORT, Linux drops all connections waiting
in this socket's listen queue.  Previously, it was believed to only result
in connection resets when reconfiguring nginx to use smaller number of worker
processes.  It also results in connection resets during configuration
testing though.

Workaround is to avoid using SO_REUSEPORT when testing configuration.  It
should prevent listening sockets from being created if a conflicting socket
already exists, while still preserving detection of other possible errors.
It should also cover UDP sockets.

The only downside of this approach seems to be that a configuration testing
won't be able to properly report the case when nginx was compiled with
SO_REUSEPORT, but the kernel is not able to set it.  Such errors will be
reported on a real start instead.
2017-07-11 19:59:56 +03:00
auto Configure: use .exe for binaries for all win32 compilers. 2017-06-06 19:37:34 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: proper syntax parsing in vim syntax highlighting. 2017-05-22 16:34:47 +03:00
docs nginx-1.13.3-RELEASE 2017-07-11 16:18:30 +03:00
misc Updated OpenSSL used for win32 builds. 2017-05-30 17:14:00 +03:00
src Core: disabled SO_REUSEPORT when testing config (ticket #1300). 2017-07-11 19:59:56 +03:00
.hgtags release-1.13.3 tag 2017-07-11 16:18:31 +03:00