cpp: Fix for task completion notification deadlock under heavy server load
authorDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:34 +0000 (05:19 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 9 Mar 2010 05:19:34 +0000 (05:19 +0000)
commit83b8fdac0ff52f1f1d9f96772b956c807f668593
treed4cecc242929b8313fa6abcb19aac9214937f0f4
parenta0dbfefbf3d09eebdc784f3fe6049c8bbc62a498
cpp: Fix for task completion notification deadlock under heavy server load

Along with insuring that the event loop is able to see task completion
notifications, we need to process pending notifications as soon as they
are available to avoid filling the notification pipe (the pipe can hold
512 notifications).

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920668 13f79535-47bb-0310-9956-ffa450edef68
lib/cpp/src/server/TNonblockingServer.cpp
lib/cpp/src/server/TNonblockingServer.h