mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
conmon: make sure we report http specific on close
This commit is contained in:
parent
6953958fc3
commit
1b9ef51a95
1 changed files with 6 additions and 0 deletions
|
@ -505,6 +505,12 @@ secstream_h1(struct lws *wsi, enum lws_callback_reasons reason, void *user,
|
|||
lws_ss_assert_extant(wsi->a.context, wsi->tsi, h);
|
||||
|
||||
#if defined(LWS_WITH_CONMON)
|
||||
if (wsi->conmon.pcol == LWSCONMON_PCOL_NONE) {
|
||||
wsi->conmon.pcol = LWSCONMON_PCOL_HTTP;
|
||||
wsi->conmon.protocol_specific.http.response =
|
||||
(int)lws_http_client_http_response(wsi);
|
||||
}
|
||||
|
||||
lws_conmon_ss_json(h);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue