[thrift] add setTcp{Send,Recv}Buffer to C++ TSocketServer
Summary: needs moar BDPs
Reviewed By: mcslee
Test Plan: now using in our service
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665579 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.h b/lib/cpp/src/transport/TServerSocket.h
index 213d9d4..b6bafa0 100644
--- a/lib/cpp/src/transport/TServerSocket.h
+++ b/lib/cpp/src/transport/TServerSocket.h
@@ -33,6 +33,9 @@
void setRetryLimit(int retryLimit);
void setRetryDelay(int retryDelay);
+ void setTcpSendBuffer(int tcpSendBuffer);
+ void setTcpRecvBuffer(int tcpRecvBuffer);
+
void listen();
void close();
@@ -49,6 +52,8 @@
int recvTimeout_;
int retryLimit_;
int retryDelay_;
+ int tcpSendBuffer_;
+ int tcpRecvBuffer_;
int intSock1_;
int intSock2_;