]> git.kaiwu.me - nginx.git/commit
Events: fixed setting of IP_BIND_ADDRESS_NO_PORT/SO_REUSEADDR.
authorRuslan Ermilov <ru@nginx.com>
Mon, 22 Aug 2016 08:40:10 +0000 (11:40 +0300)
committerRuslan Ermilov <ru@nginx.com>
Mon, 22 Aug 2016 08:40:10 +0000 (11:40 +0300)
commitd4f70116883792bd902a1761c8a09cdee042e27a
tree5d1d538e5c356ec693d5fb08b0ae1c6ced73cc2f
parentdabbf30377d422a0e40093e3f429fca352c633a1
Events: fixed setting of IP_BIND_ADDRESS_NO_PORT/SO_REUSEADDR.

The IP_BIND_ADDRESS_NO_PORT option is set on upstream sockets
if proxy_bind does not specify a port.  The SO_REUSEADDR option
is set on UDP upstream sockets if proxy_bind specifies a port.

Due to checking of the wrong port, IP_BIND_ADDRESS_NO_PORT was
never set, and SO_REUSEPORT was always set.
src/event/ngx_event_connect.c