You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2020/04/17 18:58:30 UTC
[qpid-dispatch] branch master updated: DISPATCH-1621: close
websocket when we have no more to send
This is an automated email from the ASF dual-hosted git repository.
gsim pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git
The following commit(s) were added to refs/heads/master by this push:
new 05962c2 DISPATCH-1621: close websocket when we have no more to send
05962c2 is described below
commit 05962c202683fd250489c1d0030a5195239ce157
Author: Gordon Sim <gs...@redhat.com>
AuthorDate: Tue Apr 14 17:41:11 2020 +0100
DISPATCH-1621: close websocket when we have no more to send
---
src/http-libwebsockets.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/http-libwebsockets.c b/src/http-libwebsockets.c
index d1ba7f9..0a7854d 100644
--- a/src/http-libwebsockets.c
+++ b/src/http-libwebsockets.c
@@ -185,7 +185,7 @@ static int handle_events(connection_t* c) {
if (pn_connection_driver_write_buffer(&c->driver).size) {
lws_callback_on_writable(c->wsi);
}
- if (pn_connection_driver_finished(&c->driver)) {
+ if (pn_connection_driver_write_closed(&c->driver)) {
lws_close_reason(c->wsi, LWS_CLOSE_STATUS_NORMAL, NULL, 0);
return -1;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org