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 2015/02/12 18:21:20 UTC
[3/6] qpid-proton git commit: workaround for lack of sufficient
transport events from ssl
workaround for lack of sufficient transport events from ssl
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/277c0b49
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/277c0b49
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/277c0b49
Branch: refs/heads/master
Commit: 277c0b494bbca6bc4d2e5716cd9ea952743d073a
Parents: 0155a77
Author: Gordon Sim <gs...@redhat.com>
Authored: Wed Feb 11 22:05:26 2015 +0000
Committer: Gordon Sim <gs...@redhat.com>
Committed: Thu Feb 12 13:48:51 2015 +0000
----------------------------------------------------------------------
proton-c/src/reactor/connection.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/277c0b49/proton-c/src/reactor/connection.c
----------------------------------------------------------------------
diff --git a/proton-c/src/reactor/connection.c b/proton-c/src/reactor/connection.c
index 281ce20..da0eb22 100644
--- a/proton-c/src/reactor/connection.c
+++ b/proton-c/src/reactor/connection.c
@@ -156,7 +156,9 @@ static void pni_connection_readable(pn_selectable_t *sel)
}
ssize_t newcap = pn_transport_capacity(transport);
- if (newcap != capacity) {
+ //occasionally transport events aren't generated when expected, so
+ //the following hack ensures we always update the selector
+ if (1 || newcap != capacity) {
pni_connection_update(sel);
pn_reactor_update(reactor, sel);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org