You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/09/01 15:04:07 UTC

[39/50] qpid-proton git commit: PROTON-1564: epoll release connection - end event stream immediately after release

PROTON-1564: epoll release connection - end event stream immediately after release


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/d7e3aa5b
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/d7e3aa5b
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/d7e3aa5b

Branch: refs/heads/go1
Commit: d7e3aa5b00f60add9e8425c8f35c85bcdc8cbce3
Parents: b9525a6
Author: Clifford Jansen <cl...@apache.org>
Authored: Wed Aug 30 08:51:08 2017 -0700
Committer: Clifford Jansen <cl...@apache.org>
Committed: Wed Aug 30 08:51:08 2017 -0700

----------------------------------------------------------------------
 proton-c/src/proactor/epoll.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/d7e3aa5b/proton-c/src/proactor/epoll.c
----------------------------------------------------------------------
diff --git a/proton-c/src/proactor/epoll.c b/proton-c/src/proactor/epoll.c
index 3faeb1a..9a29869 100644
--- a/proton-c/src/proactor/epoll.c
+++ b/proton-c/src/proactor/epoll.c
@@ -813,6 +813,7 @@ static void pconnection_forced_shutdown(pconnection_t *pc) {
 
 static pn_event_t *pconnection_batch_next(pn_event_batch_t *batch) {
   pconnection_t *pc = batch_pconnection(batch);
+  if (!pc->bound) return NULL;
   pn_event_t *e = pn_connection_driver_next_event(&pc->driver);
   if (!e) {
     write_flush(pc);  // May generate transport event


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org