summaryrefslogtreecommitdiffstats
path: root/module/lib/thrift/transport/TSocket.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/lib/thrift/transport/TSocket.py')
-rw-r--r--module/lib/thrift/transport/TSocket.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/lib/thrift/transport/TSocket.py b/module/lib/thrift/transport/TSocket.py
index be6167802..4e0e1874f 100644
--- a/module/lib/thrift/transport/TSocket.py
+++ b/module/lib/thrift/transport/TSocket.py
@@ -151,8 +151,8 @@ class TServerSocket(TSocketBase, TServerTransportBase):
self.handle = socket.socket(res[0], res[1])
self.handle.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
- if hasattr(self.handle, 'set_timeout'):
- self.handle.set_timeout(None)
+ if hasattr(self.handle, 'settimeout'):
+ self.handle.settimeout(None)
self.handle.bind(res[4])
self.handle.listen(128)