keepalive close file when send completes dont wait for wsi close processing
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
29ddc84a5c
commit
c6f95d3f27
1 changed files with 4 additions and 0 deletions
|
@ -555,6 +555,10 @@ all_sent:
|
|||
wsi->u.http.filepos == wsi->u.http.filelen) {
|
||||
wsi->state = WSI_STATE_HTTP;
|
||||
|
||||
/* we might be in keepalive, so close it off here */
|
||||
compatible_file_close(wsi->u.http.fd);
|
||||
wsi->u.http.fd = LWS_INVALID_FILE;
|
||||
|
||||
if (wsi->protocol->callback)
|
||||
/* ignore callback returned value */
|
||||
user_callback_handle_rxflow(
|
||||
|
|
Loading…
Add table
Reference in a new issue