From b1200b51f070c5b1c0f8d2683af815fe80df9d1c Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 7 Apr 2008 11:51:07 +0000 Subject: 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 --- cpp/src/qpid/sys/AsynchIOAcceptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpp/src/qpid/sys/AsynchIOAcceptor.cpp') 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; -- cgit v1.2.1