http_transaction_completed handle two completions in detach reset order
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
2c218e705f
commit
c9259876d2
1 changed files with 6 additions and 5 deletions
11
lib/server.c
11
lib/server.c
|
@ -737,11 +737,12 @@ lws_http_transaction_completed(struct lws *wsi)
|
|||
* that is already at least the start of another header set, simply
|
||||
* reset the existing header table and keep it.
|
||||
*/
|
||||
if (wsi->u.hdr.ah &&
|
||||
wsi->u.hdr.ah->rxpos == wsi->u.hdr.ah->rxlen)
|
||||
lws_header_table_detach(wsi);
|
||||
else
|
||||
lws_header_table_reset(wsi);
|
||||
if (wsi->u.hdr.ah) {
|
||||
if (wsi->u.hdr.ah->rxpos == wsi->u.hdr.ah->rxlen)
|
||||
lws_header_table_detach(wsi);
|
||||
else
|
||||
lws_header_table_reset(wsi);
|
||||
}
|
||||
|
||||
/* If we're (re)starting on headers, need other implied init */
|
||||
wsi->u.hdr.ues = URIES_IDLE;
|
||||
|
|
Loading…
Add table
Reference in a new issue