Browse files

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

  • Loading branch information...
1 parent d102a3b commit c83e2d9638bcf6a07febaaadcb9ee6341ade8344 @gregoryyoung gregoryyoung committed Feb 28, 2014
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.