mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00
only use clean buffer for failed write if sent something
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
4dd338590e
commit
5bc002e424
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ handle_truncated_send:
|
|||
}
|
||||
|
||||
if (n < real_len) {
|
||||
if (wsi->u.ws.clean_buffer)
|
||||
if (n && wsi->u.ws.clean_buffer)
|
||||
/*
|
||||
* This buffer unaffected by extension rewriting.
|
||||
* It means the user code is expected to deal with
|
||||
|
|
Loading…
Add table
Reference in a new issue