projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6bd629
)
close path: make sure a second time timeout and ssl buffered lists are scrubbed
author
Andy Green
<andy@warmcat.com>
Fri, 4 Aug 2017 05:27:34 +0000
(13:27 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 4 Aug 2017 05:29:11 +0000
(13:29 +0800)
lws_meta children can have a different close path
lib/libwebsockets.c
patch
|
blob
|
history
diff --git
a/lib/libwebsockets.c
b/lib/libwebsockets.c
index
2ca8316
..
e774b93
100755
(executable)
--- a/
lib/libwebsockets.c
+++ b/
lib/libwebsockets.c
@@
-101,6
+101,11
@@
lws_free_wsi(struct lws *wsi)
}
lws_pt_unlock(pt);
+ /* since we will destroy the wsi, make absolutely sure now */
+
+ lws_ssl_remove_wsi_from_buffered_list(wsi);
+ lws_remove_from_timeout_list(wsi);
+
wsi->context->count_wsi_allocated--;
lwsl_debug("%s: %p, remaining wsi %d\n", __func__, wsi,
wsi->context->count_wsi_allocated);