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 2007/11/05 11:33:41 UTC
svn commit: r591950 -
/incubator/qpid/trunk/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp
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) {