THRIFT-1407: Typo in Python socket server causes Thrift to fail when we enable a global socket timout

Client: py
Patch: adalc

Fixes typo in python socket server timeout



git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1189170 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jake Farrell 2011-10-26 12:36:17 +00:00
parent f55f33bfba
commit 1290d42162

View File

@ -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)