Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix rest of mono attributes and add handling of bad calls to http

  • Loading branch information...
commit c83e2d9638bcf6a07febaaadcb9ee6341ade8344 1 parent d102a3b
@gregoryyoung gregoryyoung authored
View
2  src/EventStore/EventStore.Core/Bus/QueueStatsCollector.cs
@@ -272,7 +272,9 @@ public static void InitializeCheckpoints(ICheckpoint writerCheckpoint, ICheckpoi
[Conditional("DEBUG")]
public void Enqueued()
{
+#if DEBUG
Interlocked.Increment(ref _length);
+#endif
}
[Conditional("DEBUG")]
View
18 src/EventStore/EventStore.Transport.Http/Server/HttpAsyncServer.cs
@@ -132,7 +132,23 @@ private void ContextAcquired(IAsyncResult ar)
}
if (success)
- ProcessRequest(context);
+ try
+ {
+ ProcessRequest(context);
+ }
+ catch (ObjectDisposedException)
+ {
+ }
+ catch (InvalidOperationException)
+ {
+ }
+ catch (ApplicationException)
+ {
+ }
+ catch(Exception ex)
+ {
+ Logger.ErrorException(ex, "ProcessRequest error");
+ }
try
{

0 comments on commit c83e2d9

Please sign in to comment.
Something went wrong with that request. Please try again.