]> git.kaiwu.me - nginx.git/commit
Stream: set SO_REUSEADDR for UDP upstream sockets.
authorRoman Arutyunyan <arut@nginx.com>
Mon, 20 Jun 2016 09:48:47 +0000 (12:48 +0300)
committerRoman Arutyunyan <arut@nginx.com>
Mon, 20 Jun 2016 09:48:47 +0000 (12:48 +0300)
commit4c03c80e12158bd6daf3c6608aca3e3acce56640
treecd5dbcbca88cc7a9eddfb712d26a8308caae81c1
parent05879309c11a6b62be2ffe89882cf5d8ddc1427f
Stream: set SO_REUSEADDR for UDP upstream sockets.

The option is only set if the socket is bound to a specific port to allow
several such sockets coexist at the same time.  This is required, for example,
when nginx acts as a transparent proxy and receives two datagrams from the same
client in a short time.

The feature is only implemented for Linux.
src/event/ngx_event_connect.c