summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/sys
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-07 11:51:07 +0000
committerGordon Sim <gsim@apache.org>2008-04-07 11:51:07 +0000
commitb1200b51f070c5b1c0f8d2683af815fe80df9d1c (patch)
tree2f10f9b4d90bcfc398bb0d48a738b23572df7f25 /cpp/src/qpid/sys
parent4734b4f16482e331f3c5008f66ffd87fa7a79bea (diff)
downloadqpid-python-b1200b51f070c5b1c0f8d2683af815fe80df9d1c.tar.gz
AsynchIoAcceptor.cpp: Limit output from codec to one buffer per 'idle' call.
PreviewConnectionCodec: Generate output frames for encoding while available and while they can fit in the buffer given git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@645470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys')
-rw-r--r--cpp/src/qpid/sys/AsynchIOAcceptor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/sys/AsynchIOAcceptor.cpp b/cpp/src/qpid/sys/AsynchIOAcceptor.cpp
index 6502885ed0..153557c5e5 100644
--- a/cpp/src/qpid/sys/AsynchIOAcceptor.cpp
+++ b/cpp/src/qpid/sys/AsynchIOAcceptor.cpp
@@ -301,7 +301,7 @@ void AsynchIOHandler::idle(AsynchIO&){
return;
}
if (codec == 0) return;
- while (codec->canEncode()) {
+ if (codec->canEncode()) {
// Try and get a queued buffer if not then construct new one
AsynchIO::BufferBase* buff = aio->getQueuedBuffer();
if (!buff) buff = new Buff;