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:
Xavier Deguillard 2022-02-18 09:39:29 -08:00 committed by Facebook GitHub Bot
parent 00a924a2b5
commit f331622169

View File

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