Azure / DotNetty

DotNetty project – a port of netty, event-driven asynchronous network application framework
Other
4.1k stars 978 forks source link

StackTrace not correct when exception caught #593

Open elevenxt opened 2 years ago

elevenxt commented 2 years ago

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))".