Improve backtrace of errors raised by Socket.tcp_with_fast_fallback
Socket.tcp_with_fast_fallback
[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.
cause
Improve backtrace of errors raised by
Socket.tcp_with_fast_fallback
[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
.