Skip to content
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

Merged
merged 6 commits into from
Jul 17, 2024
Merged

Conversation

mikejgray
Copy link
Collaborator

No description provided.

requirements.txt Outdated Show resolved Hide resolved
@@ -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)
Copy link
Member

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

Copy link
Collaborator Author

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

@mikejgray mikejgray requested a review from NeonDaniel May 30, 2024 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants