mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
client: reset: detach wsi from buflist pending owner on reset
This commit is contained in:
parent
d7ac7f4deb
commit
2c46d3882f
1 changed files with 6 additions and 0 deletions
|
@ -82,7 +82,13 @@ __lws_reset_wsi(struct lws *wsi)
|
|||
wsi->user_space && !wsi->user_space_externally_allocated)
|
||||
lws_free_set_NULL(wsi->user_space);
|
||||
|
||||
/*
|
||||
* Don't let buflist content or state from the wsi's previous life
|
||||
* carry over to the new life
|
||||
*/
|
||||
|
||||
lws_buflist_destroy_all_segments(&wsi->buflist);
|
||||
lws_dll2_remove(&wsi->dll_buflist);
|
||||
lws_buflist_destroy_all_segments(&wsi->buflist_out);
|
||||
#if defined(LWS_WITH_UDP)
|
||||
lws_free_set_NULL(wsi->udp);
|
||||
|
|
Loading…
Add table
Reference in a new issue