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:
Andy Green 2017-06-29 10:13:29 +08:00
parent e4d8acc85a
commit ff9a24de1c

View file

@ -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)) {