mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
issue_raw: translate transaction_completed decision about close into local semantics
via Chanson Shen https://libwebsockets.org/pipermail/libwebsockets/2018-September/007672.html
This commit is contained in:
parent
000d2d2027
commit
64ea98f11c
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ int lws_issue_raw(struct lws *wsi, unsigned char *buf, size_t len)
|
|||
"deferred transaction completed\n",
|
||||
__func__);
|
||||
wsi->http.deferred_transaction_completed = 0;
|
||||
return lws_http_transaction_completed(wsi);
|
||||
return lws_http_transaction_completed(wsi) ?
|
||||
-1 : (int)real_len;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue