mirror of
https://github.com/facebook/sapling.git
synced 2024-10-05 14:28:17 +03:00
windows_thrift: make sure to call settimeout
Summary: The TSocket.setTimeout in EdenFS is always called before calling open. What this means is that settimeout is never called on the WindowsSocketHandle object. In TSocket.open, settimeout is called right before trying the connection, we should be doing that too. Reviewed By: fanzeyi Differential Revision: D34317838 fbshipit-source-id: b89dafdf84d418ec5f7be6acec25ea0e94a0ad52
This commit is contained in:
parent
00a924a2b5
commit
f331622169
@ -308,6 +308,7 @@ class WinTSocket(TSocket):
|
||||
|
||||
handle = WindowsSocketHandle()
|
||||
self.setHandle(handle)
|
||||
handle.settimeout(self._timeout)
|
||||
try:
|
||||
handle.connect(self._unix_socket)
|
||||
except OSError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user