Permalink
Browse files

Just catch all exceptions when trying to get the context / start a ne…

…w one
  • Loading branch information...
1 parent 1eb0598 commit 15655badbca18d9e1559f1f0c35a83150a1c2d4f @ayende ayende committed Sep 5, 2011
Showing with 2 additions and 14 deletions.
  1. +2 −14 Raven.Http/HttpServer.cs
View
16 Raven.Http/HttpServer.cs
@@ -190,25 +190,13 @@ private void GetContext(IAsyncResult ar)
//setup waiting for the next request
listener.BeginGetContext(GetContext, null);
}
- catch (AggregateException)
- {
- // can't get current request / end new one, probably
- // listner shutdown
- return;
- }
- catch (InvalidOperationException)
- {
- // can't get current request / end new one, probably
- // listner shutdown
- return;
- }
- catch (HttpListenerException)
+ catch (Exception)
{
// can't get current request / end new one, probably
// listner shutdown
return;
}
-
+
if (concurretRequestSemaphore.Wait(TimeSpan.FromSeconds(5)) == false)
{
HandleTooBusyError(ctx);

0 comments on commit 15655ba

Please sign in to comment.