Skip to content
Snippets Groups Projects
Commit 7c15eb1e authored by Andy Green's avatar Andy Green
Browse files

only report CLIENT_CONNECTION_ERROR once on some paths


In most cases the close api will see it should send the CCE because
we are still in the waiting server reply state until the end of the
interpretation.  Only if we completed the interpretation and moved
on to ESTABLISHED do we need to handle sending it ourselves.

Signed-off-by: default avatarAndy Green <andy.green@linaro.org>
parent 389a4bb9
No related branches found
No related tags found
No related merge requests found
...@@ -855,7 +855,7 @@ bail3: ...@@ -855,7 +855,7 @@ bail3:
close_reason = LWS_CLOSE_STATUS_NOSTATUS; close_reason = LWS_CLOSE_STATUS_NOSTATUS;
bail2: bail2:
if (wsi->protocol) { if (wsi->protocol && wsi->state == LWSS_ESTABLISHED) {
if (isErrorCodeReceived && p) { if (isErrorCodeReceived && p) {
wsi->protocol->callback(wsi, wsi->protocol->callback(wsi,
LWS_CALLBACK_CLIENT_CONNECTION_ERROR, LWS_CALLBACK_CLIENT_CONNECTION_ERROR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment