Skip to content

[3.4] Improve backtrace of errors raised by Socket.tcp_with_fast_fallback #13042

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

Merged
merged 1 commit into from
Apr 2, 2025

Conversation

casperisfine
Copy link
Contributor

[Bug #21211]

Socket errors raised from background threads are hard to track down because their backtrace starts from the spawned thread.

To solve this we can raise a new error with the old one as cause.

[Bug #21211]

Socket errors raised from background threads are hard to track down because
their backtrace starts from the spawned thread.

To solve this we can raise a new error with the old one as `cause`.
@casperisfine casperisfine requested a review from k0kubun as a code owner April 2, 2025 11:25
@k0kubun k0kubun merged commit e3fc29a into ruby:ruby_3_4 Apr 2, 2025
75 of 77 checks passed
@k0kubun k0kubun deleted the ruby_3_4-tcp-backtrace branch April 2, 2025 16:16
@hsbt hsbt added the Backport label Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

4 participants