/[Apache-SVN]
ViewVC logotype

Revision 665137


Jump to revision: Previous Next
Author: dweatherford
Date: Tue Jun 19 23:10:19 2007 UTC (17 years, 4 months ago)
Changed paths: 2
Log Message:
[thrift] Add optional callback inside of serve()

Summary: If enabled, the callback function will be run after the listening socket is opened and the event loop initialized, just prior to calling event_loop()

This is handy if you want to defer some of your initialization until after the socket is open -- allowing clients to connect, but not processing requests until the initialization is complete. I use this in the Synapse tablet server to minimize the communications interruption that happens during a tablet split (replaying commit logs after opening the listening socket).

Review: mcslee
Test Plan: compiled it into Synapse's tablet server
Revert: ok


Changed paths

Path Details
Directoryincubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.cpp modified , text changed
Directoryincubator/thrift/trunk/lib/cpp/src/server/TNonblockingServer.h modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26