forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xsp-2.10.2-endrequest.patch
35 lines (30 loc) · 1.11 KB
/
xsp-2.10.2-endrequest.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From d2c4a279942a4575b80618719646d0767c077e96 Mon Sep 17 00:00:00 2001
From: Guillaume Pitel <[email protected]>
Date: Tue, 6 Mar 2012 17:20:24 +0100
Subject: [PATCH] Added try/catch around EndRequest Record sending (Bug 3765
https://bugzilla.xamarin.com/show_bug.cgi?id=3765)
---
src/Mono.WebServer.FastCgi/Connection.cs | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/Mono.WebServer.FastCgi/Connection.cs b/src/Mono.WebServer.FastCgi/Connection.cs
index 6c70824..0e9ef64 100644
--- a/src/Mono.WebServer.FastCgi/Connection.cs
+++ b/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);
--
1.7.10