Issue with SSE and fcgiwrap in nginx (RESTCONF)

Rostyslav Zalevskyy rostyslav.z at yumaworks.com
Tue May 13 23:39:20 UTC 2025


Hello NGINX team,

I'm working on a RESTCONF server that streams data via SSE.

When using Apache2 with mod_fcgid, everything works fine:
multiple clients can connect to /restconf/streams, and each gets a stream.


However, when switching to nginx + fcgiwrap, only the first connection
works.
All other connections hang or cause nginx to become unresponsive until the
first SSE stream is closed.

Even when I stop the client using Ctrl+C, nginx/fcgiwrap does not seem to
close the connection.
The socket remains open (verified via lsof/netstat), and nginx stays
unresponsive.

I've attached both nginx and Apache configurations.

Is there a way to configure nginx + fcgiwrap to support multiple parallel
event-stream (SSE) connections, and to close them properly when timeput
after  the client disconnects?

Thanks,
Rostyslav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250513/5f73d847/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NGINX-restconf
Type: application/octet-stream
Size: 2206 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250513/5f73d847/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: APACHE2-restconf.conf
Type: application/octet-stream
Size: 5078 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250513/5f73d847/attachment-0001.obj>


More information about the nginx mailing list