StackTrace not correct when exception caught
Open
- Dominant language
- C#
- Stars
- 4.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
In method ChannelOutboundBuffer.FailFlushed, the statement "this.Remove0(cause, notify)" appends some same text to variable cause.StackTrace in each loop, when this statement loops for many times, the variable cause.StackTrace reachs hundreds of lines.
we can fix this by change statement from "if (!this.Remove0(cause, notify))" to "if (!this.Remove0(new Exception("fail flush", cause), notify))".
Contributor guide
Assessment
This issue has not been assessed yet.