From 439cee3d2b28dd20a531887ffee596537066696b Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 5 Nov 2007 10:33:40 +0000 Subject: Push buffer back on front when read fails (esp. important when result was EAGAIN as the buffer may contain unread data) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@591950 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/posix/AsynchIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/sys/posix/AsynchIO.cpp b/cpp/src/qpid/sys/posix/AsynchIO.cpp index b2c50facd7..d432e29720 100644 --- a/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/cpp/src/qpid/sys/posix/AsynchIO.cpp @@ -198,7 +198,7 @@ void AsynchIO::readable(DispatchHandle& h) { } } else { // Put buffer back - bufferQueue.push_back(buff); + bufferQueue.push_front(buff); // Eof or other side has gone away if (rc == 0 || errno == ECONNRESET) { -- cgit v1.2.1