<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hello all,</span><div style="font-family:arial,sans-serif;font-size:13px">I have been developing an nginx module that allows the sending of zeromq messages through nginx (inspired by <a href="https://github.com/FRiCKLE/ngx_zeromq" target="_blank">https://github.com/FRiCKLE/ngx_zeromq</a>).  The code base for this can be found here: <a href="https://github.com/neloe/ngx_zmq" target="_blank">https://github.com/neloe/ngx_zmq</a></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">However, I'm running into an issue where when running with a minimal location configuration of</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">location /zmq/{</div><div style="font-family:arial,sans-serif;font-size:13px">            zmq_endpoint "tcp://localhost:5555";</div><div style="font-family:arial,sans-serif;font-size:13px">            zmq;</div><div style="font-family:arial,sans-serif;font-size:13px">        }</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am testing the location with the following curl command:</div><div style="font-family:arial,sans-serif;font-size:13px">curl -s localhost:8080/zmq/ -X POST -d "hello"<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">with 256 worker_connections, 1 worker_process, and keepalive_timeout of 0, requests to the location will start failing after 254 requests.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Increasing to 1024 worker_connections does not solve the problem, but allows me to send 1022 requests before the following begins appearing in my error log:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">2014/11/25 14:25:27 [alert] 10732#0: 1024 worker_connections are not enough</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Explicitly disabling keepalive/lingering connections does not seem to solve the problem; it feels like something somewhere is grabbing the worker connection and never releasing it.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I have tried building the module against nginx 1.5.12, 1.7.4 and 1.7.7.  The older two versions are because they are the versions of openresty I am trying to use this module in conjunction with.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Any guidance as to what would be causing these connections to never be released would be very welcome.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Thank you,</div><div style="font-family:arial,sans-serif;font-size:13px">Nathan Eloe</div></div>