Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Prevent server from hanging on error #623

Merged
merged 1 commit into from
Jul 28, 2022
Merged

Conversation

charlespwd
Copy link
Contributor

@charlespwd charlespwd commented Jul 27, 2022

For some reason, sometimes $stderr.puts err.full_message hangs. And I mean the word used, it hangs. It doesn't raise an error. This is annoying because you end up with a 100% CPU instead of logging the error you're meaning to handle.

This PR wraps the error printing into timeouts so that they print and stop hanging.

Super ironic.

Fixes #622

For some reason, sometimes $stderr.puts err.full_message hangs.
And I mean the word used, it _hangs_. It doesn't raise an error.
This is annoying because you end up with a 100% CPU situation instead of
logging the error you're meaning to log.

This PR wraps the error printing into timeouts so that they print and
stop hanging.

(What bullshit...)

Fixes #622
@charlespwd charlespwd merged commit b3f1d42 into main Jul 28, 2022
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.

CPU running at 100% caused by theme check
1 participant