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

fix prev commit

This commit is contained in:
Dave Horton 2024-07-19 16:35:52 -04:00
parent 214c533a13
commit fc2aba60d1

View file

@ -1237,7 +1237,7 @@ drain:
// RX Extension needs to be drained before next read
n = lws_ws_rx_sm(wsi, ALREADY_PROCESSED_IGNORE_CHAR, 0);
if (n < 0) {
return zero_len_reads == SANITY_READS ? LWS_HPI_RET_PLEASE_CLOSE_ME : LWS_HPI_RET_HANDLED;
return LWS_HPI_RET_PLEASE_CLOSE_ME;
}
}
#endif
@ -1248,7 +1248,7 @@ drain:
* Something has gone wrong, we are spinning...
* let's bail on this connection
*/
return LWS_HPI_RET_PLEASE_CLOSE_ME;
return zero_len_reads == SANITY_READS ? LWS_HPI_RET_PLEASE_CLOSE_ME : LWS_HPI_RET_HANDLED;
}
if (buffered && /* were draining, now nothing left */