TimJTi commented on issue #3111: URL: https://github.com/apache/nuttx-apps/issues/3111#issuecomment-3024011819
I have found the issue and will submit a PR shortly: 1. The thttpd socket needs to be opened without the SOCK_CLOEXEC flag, as a CGI script needs access to the socket after the CGI task is created. - This is the result, I believe, of a PR last year [here](https://github.com/apache/nuttx-apps/pull/2595) 3. The cgi_ouput_interpose function needs to use `send()` not the application's own `httpd_write()` function otherwise the file descriptor used will reference the wrong file resource. Not sure why, but it does. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org