mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
cgi: check for stdout failed or gone away
This commit is contained in:
parent
a83c6439e6
commit
761207442d
1 changed files with 1 additions and 1 deletions
|
@ -316,7 +316,7 @@ lws_callback_http_dummy(struct lws *wsi, enum lws_callback_reasons reason,
|
|||
lwsl_debug("AUX_BF__CGI forcing close\n");
|
||||
return -1;
|
||||
}
|
||||
if (!n)
|
||||
if (!n && wsi->http.cgi && wsi->http.cgi->stdwsi[LWS_STDOUT])
|
||||
lws_rx_flow_control(
|
||||
wsi->http.cgi->stdwsi[LWS_STDOUT], 1);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue