mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cgi-retain-timeout-after-POST-send
Sending the POST data isn't enough to let us off the hook for timeout checks, if we are doing a CGI on it.
This commit is contained in:
parent
b49b0fbafa
commit
6fe25fd1fd
1 changed files with 6 additions and 0 deletions
|
@ -201,6 +201,12 @@ http_postbody:
|
|||
}
|
||||
/* he sent all the content in time */
|
||||
postbody_completion:
|
||||
#ifdef LWS_WITH_CGI
|
||||
/* if we're running a cgi, we can't let him off the hook just because he sent his POST data */
|
||||
if (wsi->cgi)
|
||||
lws_set_timeout(wsi, PENDING_TIMEOUT_CGI, wsi->context->timeout_secs);
|
||||
else
|
||||
#endif
|
||||
lws_set_timeout(wsi, NO_PENDING_TIMEOUT, 0);
|
||||
#ifdef LWS_WITH_CGI
|
||||
if (!wsi->cgi)
|
||||
|
|
Loading…
Add table
Reference in a new issue