From a0cc5a86baf8f71a05f8f8b07b897253132dd25f 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@591950 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp b/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp index b2c50facd7..d432e29720 100644 --- a/qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp +++ b/qpid/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