Author: tross
Date: Wed May 15 18:40:01 2013
New Revision: 1482995

URL: http://svn.apache.org/r1482995
Log:
PROTON-314 - Added (pending == 0) case to the connector processor to clear the
PN_SEL_WR bit when there is no data to write.

Modified:
    qpid/proton/trunk/proton-c/src/posix/driver.c

Modified: qpid/proton/trunk/proton-c/src/posix/driver.c
URL: 
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/posix/driver.c?rev=1482995&r1=1482994&r2=1482995&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/posix/driver.c (original)
+++ qpid/proton/trunk/proton-c/src/posix/driver.c Wed May 15 18:40:01 2013
@@ -608,7 +608,9 @@ void pn_connector_process(pn_connector_t
               c->status &= ~PN_SEL_WR;
           }
         }
-      } else if (pending < 0) {
+      } else if (pending == 0) {
+        c->status &= ~PN_SEL_WR;
+      } else {
         c->output_done = true;
         c->status &= ~PN_SEL_WR;
       }



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to