fix: Keep-alive cause STUN socket timeout on Windows #37

This commit is contained in:
Mike Wang
2024-01-21 02:46:07 +08:00
parent 0c18a3f2a4
commit 48f5a6ed71

View File

@@ -393,6 +393,9 @@ class KeepAlive(object):
except socket.timeout as ex:
if not buff:
raise ex
# temp fix: Keep-alive cause STUN socket timeout on Windows
if sys.platform == "win32":
self.reset()
return