Permalink
Browse files

Merge pull request #5 from guillaumepitel/master

Minor commit that prevents bug 3765
  • Loading branch information...
2 parents d3e2f80 + d2c4a27 commit c0a69ec7b4bcb5ff82af4b4854115e9a6f0a0ceb @gonzalop gonzalop committed Mar 14, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 src/Mono.WebServer.FastCgi/Connection.cs
@@ -319,10 +319,13 @@ public void Run ()
{
EndRequestBody body = new EndRequestBody (appStatus,
protocolStatus);
-
- if (IsConnected)
- new Record (1, RecordType.EndRequest, requestID,
- body.GetData ()).Send (socket);
+ try {
+ if (IsConnected)
+ new Record (1, RecordType.EndRequest, requestID,
+ body.GetData ()).Send (socket);
+ } catch (System.Net.Sockets.SocketException) {
+ }
+
int index = GetRequestIndex (requestID);

0 comments on commit c0a69ec

Please sign in to comment.