threadabortexception

Thread.Abort doesn't seem to throw a ThreadAbortException because of AcceptSocket

依然范特西╮ 提交于 2019-11-28 08:51:57
问题 I am calling ChannelServer.ListeningThread.Abort on the following thread, however nothing seems to happen. I would like to be more specific, but I can't think of anything more. There seems to be no ThreadAbortException that is thrown, and this exception should be thrown regardless of the blocking listener (it works perfectly on threads that are blockingly-receiving). Important EDIT : With a ManualResetEvent.WaitOne instead of AcceptSocket , as Lyrik has suggested for testing, it works