summaryrefslogtreecommitdiffhomepage
path: root/src/stream/ngx_stream.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2016-01-20Stream: UDP proxy.Roman Arutyunyan1-1/+8
2016-02-04Dynamic modules: changed ngx_modules to cycle->modules.Maxim Dounin1-11/+11
2016-02-04Dynamic modules: moved module-related stuff to separate files.Maxim Dounin1-8/+1
2015-06-16Disabled duplicate http, mail, and stream blocks.Vladimir Homutov1-0/+4
Such configurations have very limited use, introduce various problems and are not officially supported.
2015-06-09Stream: added postconfiguration method to stream modules.Vladimir Homutov1-0/+14
2015-06-08Stream: listen backlog=.Ruslan Ermilov1-0/+2
2015-06-08Stream: embed ngx_stream_listen_t into ngx_stream_conf_addr_t.Ruslan Ermilov1-46/+28
2015-06-05Stream: fixed "reuseport" to actually work.Ruslan Ermilov1-0/+7
2015-05-20The "reuseport" option of the "listen" directive.Maxim Dounin1-0/+4
When configured, an individual listen socket on a given address is created for each worker process. This allows to reduce in-kernel lock contention on configurations with high accept rates, resulting in better performance. As of now it works on Linux and DragonFly BSD. Note that on Linux incoming connection requests are currently tied up to a specific listen socket, and if some sockets are closed, connection requests will be reset, see https://lwn.net/Articles/542629/. With nginx, this may happen if the number of worker processes is reduced. There is no such problem on DragonFly BSD. Based on previous work by Sepherosa Ziehau and Yingqi Lu.
2015-05-20Simplified ngx_http_init_listening().Maxim Dounin1-7/+1
There is no need to set "i" to 0, as it's expected to be 0 assuming the bindings are properly sorted, and we already rely on this when explicitly set hport->naddrs to 1. Remaining conditional code is replaced with identical "hport->naddrs = i + 1". Identical modifications are done in the mail and stream modules, in the ngx_mail_optimize_servers() and ngx_stream_optimize_servers() functions, respectively. No functional changes.
2015-04-25Core: the ngx_set_connection_log() macro.Vladimir Homutov1-1/+1
The http and stream versions of this macro were identical.
2015-04-20Stream: port from NGINX+.Ruslan Ermilov1-0/+557