mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
mqtt: fix MQTT client PINGREQ failure when using LIBUV as event driver.
This commit is contained in:
parent
5102a5c8d6
commit
14379d1917
1 changed files with 10 additions and 0 deletions
|
@ -440,6 +440,11 @@ rops_issue_keepalive_mqtt(struct lws *wsi, int isvalid)
|
|||
}
|
||||
|
||||
nwsi->mqtt->send_pingreq = 1;
|
||||
|
||||
#if defined (LWS_WITH_LIBUV)
|
||||
nwsi->mux_substream = 0;
|
||||
#endif
|
||||
|
||||
lws_callback_on_writable(nwsi);
|
||||
|
||||
return 0;
|
||||
|
@ -562,6 +567,11 @@ rops_close_kill_connection_mqtt(struct lws *wsi, enum lws_close_status reason)
|
|||
lws_wsi_tag(wsi),
|
||||
lws_wsi_tag(wsi->mux.parent_wsi), wsi->mux.child_list);
|
||||
//lws_wsi_mux_dump_children(wsi);
|
||||
#if defined(LWS_WITH_LIBUV)
|
||||
struct lws *nwsi = lws_get_network_wsi(wsi);
|
||||
if (nwsi->mux_substream == 0)
|
||||
nwsi->mux_substream = 1;
|
||||
#endif
|
||||
|
||||
if (wsi->mux_substream
|
||||
#if defined(LWS_WITH_CLIENT)
|
||||
|
|
Loading…
Add table
Reference in a new issue