excessive ah hold: explicitly detach ah

This commit is contained in:
Andy Green 2018-01-13 05:14:43 +08:00
parent 715847cc8c
commit 5a1f0b7c4f

View file

@ -1193,6 +1193,11 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd,
m++;
} while (1);
/* explicitly detach the ah */
lws_header_table_force_to_detachable_state(wsi);
lws_header_table_detach(wsi, 0);
/* ... and then drop the connection */
if (wsi->desc.sockfd == our_fd)