asp.net的response.end超级恶心的bug
如果把
response.end放在try/catch里面,就会报错:
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
大概原因是当前线程要结束了,但是这个try/catch还在拖后腿。
如果把
response.end放在try/catch里面,就会报错:
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
大概原因是当前线程要结束了,但是这个try/catch还在拖后腿。