-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: numerous issues #57
Conversation
Cuts it in half from the default of 10. Closes OpenVoiceOS#40
@@ -46,7 +46,7 @@ async def authenticate(self): | |||
async def _connect(self): | |||
try: | |||
uri = f"{self.url}/api/websocket" | |||
self.websocket = await websockets.connect(uri) | |||
self.websocket = await websockets.connect(uri=uri, close_timeout=5, open_timeout=5) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to make open_timeout
configurable? 5s seems like plenty but I'm not sure if that includes authentication/handshaking that could take longer for some reason
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like a lot of extra work for minimal gain, but I'm open to the idea
No description provided.