Issue with SSE and fcgiwrap in nginx (RESTCONF)
Rostyslav Zalevskyy
rostyslav.z at yumaworks.com
Wed May 14 23:59:20 UTC 2025
Hi Sergey,
Thank you for the prompt reply!
On Wed, May 14, 2025 at 2:31 AM Sergey A. Osokin <osa at freebsd.org.ru> wrote:
>
> [...]
>
> Is there a chance to build nginx with a debugging log as described on
> the following page, https://nginx.org/en/docs/debugging_log.html
> and tracing fcgi requests. Please expect a lot of messages in
> the nginx error.log file.
>
I'm sharing the requested logs as attachments:
- restconf_nginx_error.log
- restconf_nginx_access.log
- terminal.log
- restconf-test.sh (a test script for reproducing the issue)
I would also like to share the steps to reproduce the issue:
Steps to reproduce:
1. I created a simple script with an infinite loop, see attached
*restconf-test.sh*
2. in the previously attached *NGINX-restconf* conf file , update *line 33*
to specify the full path to the restconf-test.sh
fastcgi_param SCRIPT_FILENAME /YOUR_REAL_PATH_TO/restconf-test.sh;
3. Restart nginx and run this in the first terminal:
*curl -v http://localhost/restconf/streams
<http://localhost/restconf/streams>*
4. Then run the same command in a second terminal: *curl -v
http://localhost/restconf/streams <http://localhost/restconf/streams>*
At this point, the second connection hangs until the first one is closed.
Let me know if you need anything else to help with debugging.
Thank you,
-Rostyslav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250514/56befaa7/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf_nginx_access.log
Type: text/x-log
Size: 200 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250514/56befaa7/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf_nginx_error.log
Type: text/x-log
Size: 30356 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250514/56befaa7/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: terminal.log
Type: text/x-log
Size: 2697 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250514/56befaa7/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: restconf-test.sh
Type: application/x-shellscript
Size: 146 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20250514/56befaa7/attachment-0007.bin>
More information about the nginx
mailing list