You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uhttpd is not honouring script_timeout if the cgi script hangs after writing the response HTTP headers.
Reading the code it seems that this behaviour is intended, I don't understand why. I am proposing to change this as it is common to write part of the response and then do something and then writing the last part of the response. If that last part hangs or takes too long then uhttpd is not killing it.
I am attaching a patch.
I've sent the patch to the mailing list a few days ago but maybe here it is easier to discuss?
The text was updated successfully, but these errors were encountered:
and configure script_timeout to 5.
Call this script through http and you will see that uhttpd is not timeouting the script at 5s, the request will finish in 123s when the script finishes.
spiccinini:
uhttpd is not honouring script_timeout if the cgi script hangs after writing the response HTTP headers.
Reading the code it seems that this behaviour is intended, I don't understand why. I am proposing to change this as it is common to write part of the response and then do something and then writing the last part of the response. If that last part hangs or takes too long then uhttpd is not killing it.
I am attaching a patch.
I've sent the patch to the mailing list a few days ago but maybe here it is easier to discuss?
The text was updated successfully, but these errors were encountered: