mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
Summary: TSocket shouldn't let you set the timeout before it's got a valid handle
Reviewed By: dcorson Test Plan: tested in sandbox git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665172 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d4de1e93c6
commit
e168d5e127
@ -27,6 +27,8 @@ class TSocket(TTransportBase):
|
||||
def setTimeout(self, ms):
|
||||
if (self.handle != None):
|
||||
self.handle.settimeout(ms/1000.00)
|
||||
else:
|
||||
raise TTransportException(TTransportException.NOT_OPEN, 'No handle yet in TSocket')
|
||||
|
||||
def open(self):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user