qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject svn commit: r591950 - /incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp
Date Mon, 05 Nov 2007 10:33:41 GMT
Author: gsim
Date: Mon Nov  5 02:33:40 2007
New Revision: 591950

URL: http://svn.apache.org/viewvc?rev=591950&view=rev
Log:
Push buffer back on front when read fails (esp. important when result was EAGAIN as the buffer
may contain unread data)


Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp?rev=591950&r1=591949&r2=591950&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp Mon Nov  5 02:33:40 2007
@@ -198,7 +198,7 @@
                 }
             } else {
                 // Put buffer back
-                bufferQueue.push_back(buff);
+                bufferQueue.push_front(buff);
                 
                 // Eof or other side has gone away
                 if (rc == 0 || errno == ECONNRESET) {



Mime
View raw message