1
0
Fork 0
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:
Andy Green 2018-09-20 07:06:51 +08:00
parent 000d2d2027
commit 64ea98f11c

View file

@ -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