THRIFT: configurable retry settings for bind
authorboz <dev-null@apache.org>
Mon, 14 May 2007 23:04:33 +0000 (23:04 +0000)
committerboz <dev-null@apache.org>
Mon, 14 May 2007 23:04:33 +0000 (23:04 +0000)
commit1ea81ce9b08d554a6256611adc5089184692ab71
tree3aafd291ab5d0405401275a6df21c10b3c1538bf
parentb5f93b0b3a3c57ce6ff75f37120688276512c869
THRIFT: configurable retry settings for bind

Summary: SO_REUSEADDR doesn't always work, and some of my servers have
expensive init routines that I really want to run before it becomes available
to services, so I want thrift to retry the bind several times at varied
intervals before giving up

Reviewed By: slee

Test Plan: running a service in GDB with no problems binding, with another
service bound to the port for all the retries, another service bound to the
port for only some of the retries

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