THRIFT-1335: Add accept timeout to TServerSocket
Client: cpp
Patch: Dave Watson
Added an accept timeout to the TServerSocket poll loop
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1170443 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.h b/lib/cpp/src/transport/TServerSocket.h
index 40a1148..280ee69 100644
--- a/lib/cpp/src/transport/TServerSocket.h
+++ b/lib/cpp/src/transport/TServerSocket.h
@@ -43,6 +43,8 @@
void setSendTimeout(int sendTimeout);
void setRecvTimeout(int recvTimeout);
+ void setAcceptTimeout(int accTimeout);
+
void setRetryLimit(int retryLimit);
void setRetryDelay(int retryDelay);
@@ -65,6 +67,7 @@
int acceptBacklog_;
int sendTimeout_;
int recvTimeout_;
+ int accTimeout_;
int retryLimit_;
int retryDelay_;
int tcpSendBuffer_;