parsing: if we ended on a set of headers and read a new buffer mark as more_rx_waiting to avoid dropping the ah
This commit is contained in:
parent
e4d8acc85a
commit
ff9a24de1c
1 changed files with 7 additions and 0 deletions
|
@ -2238,6 +2238,13 @@ lws_server_socket_service(struct lws_context *context, struct lws *wsi,
|
|||
ah->rxlen = ah->rxpos = 0;
|
||||
goto try_pollout;
|
||||
}
|
||||
|
||||
/*
|
||||
* make sure ah does not get detached if we
|
||||
* have live data in the rx
|
||||
*/
|
||||
if (ah->rxlen)
|
||||
wsi->more_rx_waiting = 1;
|
||||
}
|
||||
|
||||
if (!(ah->rxpos != ah->rxlen && ah->rxlen)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue