mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
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:
parent
f55f33bfba
commit
1290d42162
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user