File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1099,10 +1099,14 @@ fd_http_server_ws_send( fd_http_server_t * http,
1099
1099
and any connections that were previously using that allotted space
1100
1100
are closed. There is a small chance that ws_conn_id is one of
1101
1101
those connections, and has therefore already been closed. */
1102
- if ( FD_LIKELY ( http -> pollfds [ http -> max_conns + ws_conn_id ].fd == -1 ) ) return -1 ;
1102
+ if ( FD_LIKELY ( http -> pollfds [ http -> max_conns + ws_conn_id ].fd == -1 ) ) {
1103
+ http -> stage_len = 0 ;
1104
+ return 0 ;
1105
+ }
1103
1106
1104
1107
if ( FD_UNLIKELY ( conn -> send_frame_cnt == http -> max_ws_send_frame_cnt ) ) {
1105
1108
close_conn ( http , ws_conn_id + http -> max_conns , FD_HTTP_SERVER_CONNECTION_CLOSE_WS_CLIENT_TOO_SLOW );
1109
+ http -> stage_len = 0 ;
1106
1110
return 0 ;
1107
1111
}
1108
1112
You can’t perform that action at this time.
0 commit comments