diff options
author | Michael Goulish <mgoulish@apache.org> | 2010-03-17 05:52:12 +0000 |
---|---|---|
committer | Michael Goulish <mgoulish@apache.org> | 2010-03-17 05:52:12 +0000 |
commit | 0dd1a458772496dbdb51068b1f7456ce30d6e296 (patch) | |
tree | 80760f26b36f99d30b659762dfd901ac563b34dd /qpid/cpp | |
parent | 501ab27121f8d30c5f323c382fc575009705662c (diff) | |
download | qpid-python-0dd1a458772496dbdb51068b1f7456ce30d6e296.tar.gz |
workaround for BZ 570168 ( see comment in code )
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@924169 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r-- | qpid/cpp/src/qpid/client/TCPConnector.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/client/TCPConnector.cpp b/qpid/cpp/src/qpid/client/TCPConnector.cpp index 78c9b32069..1a245fe2c8 100644 --- a/qpid/cpp/src/qpid/client/TCPConnector.cpp +++ b/qpid/cpp/src/qpid/client/TCPConnector.cpp @@ -199,8 +199,19 @@ void TCPConnector::send(AMQFrame& frame) { } else { notifyWrite = (currentSize >= maxFrameSize); } - } + /* + NOTE: Moving the following line into this mutex block + is a workaround for BZ 570168, in which the test + testConcurrentSenders causes a hang about 1.5% + of the time. ( To see the hang much more frequently + leave this line out of the mutex block, and put a + small usleep just before it.) + + TODO mgoulish - fix the underlying cause and then + move this call back outside the mutex. + */ if (notifyWrite && !closed) aio->notifyPendingWrite(); + } } void TCPConnector::handleClosed() { |