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 debug server hanging forever on a blocking peek() #1698

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

amylizzle
Copy link
Collaborator

Fixes #1628

TL;DR NetworkStream.Peek() blocks on an empty stream, even though it shouldn't. So instead we just set a readtimeout and eat the error if it happens. Shouldn't happen often.

@boring-cyborg boring-cyborg bot added the Runtime Involves the OpenDream server/runtime label Mar 2, 2024
@github-actions github-actions bot added the size/S label Mar 2, 2024
@wixoaGit wixoaGit merged commit 2263e77 into OpenDreamProject:master Mar 18, 2024
7 checks passed
@amylizzle amylizzle deleted the fixdebug branch March 18, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Runtime Involves the OpenDream server/runtime size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Goonstation hangs forever only while debugger is attached
2 participants