Issue with SSE and fcgiwrap in nginx (RESTCONF)

Rostyslav Zalevskyy rostyslav.z at yumaworks.com
Thu May 15 23:24:36 UTC 2025


Hi Sergey

On Thu, May 15, 2025 at 3:08 AM Sergey A. Osokin <osa at freebsd.org.ru> wrote:

>
> Also, I've found there's the nginx, version 1.18.0, there.
> Would you mind to reproduce the issue with more recent stable version
> 1.28.0?
> Please visit the following URI to get details,
> https://nginx.org/en/linux_packages.html#Ubuntu
>
>
I have upgraded to nginx v1.28.0 and reproduced the issue using nginx-debug;
the behavior remains the same.

*Attached logs:*

*server.log.txt* - server side, showing that nginx does not execute the
original restconf script for the second connection while the first one is
still active;
*restconf_nginx_access.log* & *restconf_nginx_error.log* - logs from the
original restconf script;

*restconf_nginx_access2.log* & *restconf_nginx_error2.log* - logs from the
reproduction with the simple restconf-test.sh script (as previously
described in steps to reproduce);
*terminal2.log* - output from the restconf-test.sh reproduction.

In both cases, nginx does not execute restconf-test.sh for the second
connection while the first is still active.

Thank you,
Rostyslav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250515/d8c59b46/attachment-0001.htm>
-------------- next part --------------
netconfd-pro init OK, ready for sessions

Running netconfd-pro server rostyslav-2025-05-15.09.47-THD-13fcf (24.8.0-T)


Binding to AF_LOCAL socket /var/run/netconfd-pro/ncxserver.sock

CX thread: Listening for NCX connect requests on socket 7
Enter agt_ses_new_session for transport 'netconf-ssh', fd 9
ses_msg: new out buff 0x7b20e4003230 for s 3
New session 3 created OK
RX thread created for session 3
ses_accept_input on session 3
ses read OK (438) on session 3
ses: accept buffer ssh/1.0 (438)
ses_msg: allocate msg 0x7b20dc000b70
ses_msg: new in buff 0x7b20dc000bd0 for s 3
agt_ses msg ready for session 3
agt_top: got node
agt_top: start dispatch yuma-ncx:ncx-connect
agt_connect: got node for session 3
agt_connect: got valid version attr
agt_connect: got valid magic attr
agt_connect: transport='netconf-http'
agt_connect: protocol='restconf'
agt: skip allowed-user check for 'restconf'; not configured
agt_connect: no message-id provided in ncx-connect
agt_connect: msg ok
agt_sys: skipping <sysSessionStart> notification for RESTCONF session
agt_audit: skip record for client session
agt_cb: Enter run_session_hook
Skipping pthread read lock for events GET
agt_restcmn: Request Launch Point is 'events'
agt_restcmn: begin validate method
agt_restcmn: end validate method
agt_restcmn: begin validate Accept header
agt_restcmn: end validate Event Stream Accept header
agt_restcmn: GET /restconf/streams for 3=restconf at 127.0.0.1 [2025-05-15T22:10:37Z]
agt_restconf: Got method GET on request_uri '/restconf/streams'
agt_restconf: Got request_target_obj 'yumaworks-restconf:streams'
agt_restconf: 'Accept' header set to 'text/event-stream'
agt_not: Started live subscription 1 on stream 'NETCONF' for session '3'
ses: set SSE encoding mode for session 3
ses_msg: send 1.0 buff:119 for s:3

trace_buff:
Content-Type: text/event-stream
Status: 200 OK
Cache-Control: no-cache
Pragma: no-cache
Connection: keep-alive




agt_top: end dispatch yuma-ncx:ncx-connect
ses_msg: free msg 0x7b20dc000b70 for session 3

## NO INCOMMING from the second terminal(stream)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf_nginx_access.log
Type: text/x-log
Size: 202 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250515/d8c59b46/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf_nginx_error2.log
Type: text/x-log
Size: 342861 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250515/d8c59b46/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf_nginx_access2.log
Type: text/x-log
Size: 307 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250515/d8c59b46/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf_nginx_error.log
Type: text/x-log
Size: 35022 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250515/d8c59b46/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: terminal2.log
Type: text/x-log
Size: 6226 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250515/d8c59b46/attachment-0009.bin>


More information about the nginx mailing list