Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

Prevent enet timeouts when user waits too long between calls to console.step#88

Closed
vladfi1 wants to merge 8 commits intoaltf4:mainfrom
vladfi1:enet_timeout
Closed

Prevent enet timeouts when user waits too long between calls to console.step#88
vladfi1 wants to merge 8 commits intoaltf4:mainfrom
vladfi1:enet_timeout

Conversation

@vladfi1
Copy link
Copy Markdown
Contributor

@vladfi1 vladfi1 commented Jun 3, 2022

Currently we get disconnected from the slippstream if we wait more than ~1 minute between calls to console.step(). This PR fixes the issue by polling the enet host in a separate process. There doesn't seem to be a perfomance hit in my tests. I think using multiprocessing for this is a bit heavy-handed, but unfortunately plain multithreading is to slow.

@vladfi1 vladfi1 closed this Feb 10, 2026
@vladfi1 vladfi1 deleted the enet_timeout branch February 10, 2026 00:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant