SpanNetty icon indicating copy to clipboard operation
SpanNetty copied to clipboard

Uncatched RejectedExecutionException on IOCP thread will crash the whole app after eventloop is stopped

Open yyjdelete opened this issue 3 years ago • 0 comments

Unlike DotNetty, SpanNetty will throw RejectedExecutionException when try to submit to a eventloop after it's stopped. But unluckly it's not catched on callback of IOCP, then it will leak to threadpool, and crashes the whole app. (You can close all connected channel before close eventloop. But for connecting channel you can't do anything before it's timeout (if the dest is unavailable)) https://github.com/cuteant/SpanNetty/blob/472de8be9dcdbea9f70234096e3fb8274f3bf359/src/DotNetty.Transport/Channels/Sockets/AbstractSocketChannel.cs#L232-L286

yyjdelete avatar Jan 14 '22 03:01 yyjdelete