| commit | b003bf2bbbcdb47cad7f4334b46f0dd3adcea07f | [log] [tgz] |
|---|---|---|
| author | Ruslan Ermilov <ru@nginx.com> | Mon Aug 22 11:40:10 2016 +0300 |
| committer | Ruslan Ermilov <ru@nginx.com> | Mon Aug 22 11:40:10 2016 +0300 |
| tree | 5d1d538e5c356ec693d5fb08b0ae1c6ced73cc2f | |
| parent | 10e151f643e220431ca0588d37d72de518a59fb4 [diff] |
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.