service: always restrict rx to serve_buf_size
This commit is contained in:
parent
ad2dac0659
commit
c47fda7119
1 changed files with 3 additions and 0 deletions
|
@ -918,6 +918,9 @@ read:
|
|||
eff_buf.token_len = LWS_MAX_SOCKET_IO_BUF;
|
||||
}
|
||||
|
||||
if (eff_buf.token_len > LWS_MAX_SOCKET_IO_BUF)
|
||||
eff_buf.token_len = LWS_MAX_SOCKET_IO_BUF;
|
||||
|
||||
eff_buf.token_len = lws_ssl_capable_read(wsi,
|
||||
(unsigned char *)eff_buf.token, pending ? pending :
|
||||
eff_buf.token_len);
|
||||
|
|
Loading…
Add table
Reference in a new issue