diff options
| author | Gordon Sim <gsim@apache.org> | 2007-11-05 10:33:40 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-11-05 10:33:40 +0000 |
| commit | a0cc5a86baf8f71a05f8f8b07b897253132dd25f (patch) | |
| tree | 12f6544d4ed035870448e271dd2532a000496734 /qpid/cpp | |
| parent | e3a366af59b84b47b29edbb1d8d8b2f18cb3d9dc (diff) | |
| download | qpid-python-a0cc5a86baf8f71a05f8f8b07b897253132dd25f.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@591950 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
| -rw-r--r-- | qpid/cpp/src/qpid/sys/posix/AsynchIO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |
