summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-11-05 10:33:40 +0000
committerGordon Sim <gsim@apache.org>2007-11-05 10:33:40 +0000
commit439cee3d2b28dd20a531887ffee596537066696b (patch)
treec8e324c6ce3672ccaf75ff8eaaa2fe0199a6ec27 /cpp/src
parent6e00c9508b3a3b62b3b828a94e0de3b2ca3e6254 (diff)
downloadqpid-python-439cee3d2b28dd20a531887ffee596537066696b.tar.gz
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
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/sys/posix/AsynchIO.cpp2
1 files changed, 1 insertions, 1 deletions
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) {