From dd9a30b4d2ac9d24f540f8344cf32bbf9791a652 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 13 Jan 2018 05:20:25 +0800 Subject: [PATCH] excessive ah hold: explicitly detach ah --- lib/service.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/service.c b/lib/service.c index 43b3b4201..8cf455e2c 100644 --- a/lib/service.c +++ b/lib/service.c @@ -1092,6 +1092,11 @@ lws_service_fd_tsi(struct lws_context *context, struct lws_pollfd *pollfd, int t 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)