There is no possibility to build nginx with threads. Starting 1.7.11 nginx supports threads on Linux to offload sendfile to threads. http://nginx.org/en/CHANGES Reproducible: Always Steps to Reproduce: 1. Update nginx to 1.7.11+ 2. Add 'thread_pool' directive to main section 3. nginx -t Actual Results: mail ~ # nginx -t nginx: [emerg] unknown directive "thread_pool" in /etc/nginx/nginx.conf:9 nginx: configuration file /etc/nginx/nginx.conf test failed Expected Results: nginx build with '--with-threads' option and mail ~ # nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful I had added 'aio' and 'threads' options to packages.use and make.conf - no luck. Nginx is still build without '--with-threads' option.
More info: http://nginx.org/en/docs/http/ngx_http_core_module.html#aio
I'll look at adding this shortly with the introduction of 1.8.0 and 1.9.0 ebuilds.
Introduced in 1.9.x here: https://github.com/gentoo/gentoo-portage-rsync-mirror/pull/156 please test and let me know how it goes.
I had downloaded files from github and then nginx 1.9.2 was build --with-threads. config test passed successfully.
I've patched nginx-1.8.0.ebuild with this commit: https://github.com/gentoo/gentoo-portage-rsync-mirror/commit/0ad91f012f8c8d0142b94597a2a076f73203ff50 and it seems to be ok.
This was landed in the 1.9 series. Closing.