1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

close: after DROP_PROTOCOL no longer report traffic to callback

x
This commit is contained in:
Andy Green 2019-03-23 08:02:53 +08:00
parent 5c3a2be00d
commit ff71e3cc0d
2 changed files with 4 additions and 2 deletions

View file

@ -970,7 +970,8 @@ html_parser_cb(const hubbub_token *token, void *pw)
break;
}
if (user_callback_handle_rxflow(r->wsi->protocol->callback,
if (r->wsi->protocol_bind_balance &&
user_callback_handle_rxflow(r->wsi->protocol->callback,
r->wsi, LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ,
r->wsi->user_space, start, p - start))
return -1;

View file

@ -1249,7 +1249,8 @@ spin_chunks:
{
struct lws *wsi_eff = lws_client_wsi_effective(wsi);
if (user_callback_handle_rxflow(wsi_eff->protocol->callback,
if (!wsi_eff->protocol_bind_balance &&
user_callback_handle_rxflow(wsi_eff->protocol->callback,
wsi_eff, LWS_CALLBACK_RECEIVE_CLIENT_HTTP_READ,
wsi_eff->user_space, *buf, n)) {
lwsl_info("%s: RECEIVE_CLIENT_HTTP_READ returned -1\n",