aspnet / AspNetKatana

Microsoft's OWIN implementation, the Katana project
Apache License 2.0
967 stars 334 forks source link

HttpListener exception handling #317

Closed Tratcher closed 5 years ago

Tratcher commented 5 years ago

314 OwinHttpListener assumed HttpListenerException would only be thrown if the HttpListener had been disposed. However, a partner identified another scenario where it can throw. These specialized catch blocks were redundant anyways, they all did the same thing. I've removed them and let everything fall through to the generic block. This now more close matches the code in Core.

@scottlerch