mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix misunderstood fragmentation restriction
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
5d9d94ba09
commit
9a50ba844f
1 changed files with 0 additions and 18 deletions
|
@ -422,15 +422,6 @@ post_mask:
|
|||
wsi->opcode = c & 0xf;
|
||||
wsi->final = !!((c >> 7) & 1);
|
||||
|
||||
if (wsi->final &&
|
||||
wsi->opcode == LWS_WS_OPCODE_04__CONTINUATION &&
|
||||
wsi->rx_packet_length == 0) {
|
||||
fprintf(stderr,
|
||||
"Frame starts with final continuation\n");
|
||||
/* kill the connection */
|
||||
return -1;
|
||||
}
|
||||
|
||||
wsi->lws_rx_parse_state = LWS_RXPS_04_FRAME_HDR_LEN;
|
||||
break;
|
||||
|
||||
|
@ -758,15 +749,6 @@ int libwebsocket_client_rx_sm(struct libwebsocket *wsi, unsigned char c)
|
|||
wsi->opcode = c & 0xf;
|
||||
wsi->final = !!((c >> 7) & 1);
|
||||
|
||||
if (wsi->final &&
|
||||
wsi->opcode == LWS_WS_OPCODE_04__CONTINUATION &&
|
||||
wsi->rx_packet_length == 0) {
|
||||
fprintf(stderr,
|
||||
"Frame starts with final continuation\n");
|
||||
/* kill the connection */
|
||||
return -1;
|
||||
}
|
||||
|
||||
wsi->lws_rx_parse_state = LWS_RXPS_04_FRAME_HDR_LEN;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue