THRIFT-926. cpp: Add configurable buffer recycling for TNonblockingServer
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:45 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:45 +0000 (17:10 +0000)
commit54bec5dbd8f91305d2cd1d1f1125cf8b54fdd6bc
treed5bb16b3c1bb1f5bdeafa1499d0c66e7e72a6b24
parent7197efb8490afebc97625de2b8a4dfcf61fe6d19
THRIFT-926. cpp: Add configurable buffer recycling for TNonblockingServer

Add methods to TNonblockingServer to set the maximum size of idle read
and write buffers and the check interval (in calls).  When checked, if
the buffers are larger than the configured maximum, they will be resized
down the to maximum size.

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