diff options
Diffstat (limited to 'OpenSim/Framework')
-rw-r--r-- | OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs b/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs index b0cf34d..b2c1c54 100644 --- a/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs +++ b/OpenSim/Framework/Servers/HttpServer/SynchronousRestFormsRequester.cs | |||
@@ -81,12 +81,17 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
81 | } | 81 | } |
82 | catch (Exception e) | 82 | catch (Exception e) |
83 | { | 83 | { |
84 | m_log.DebugFormat("[FORMS]: exception occured on sending request to {0}: {1}", requestUrl, e.Message); | 84 | m_log.DebugFormat("[FORMS]: exception occured on sending request to {0}: " + e.ToString(), requestUrl); |
85 | } | 85 | } |
86 | finally | 86 | finally |
87 | { | 87 | { |
88 | if (requestStream != null) | 88 | // If this is closed, it will be disposed internally, |
89 | requestStream.Close(); | 89 | // but the above write is asynchronous and may hit after |
90 | // we're through here. So the thread handling that will | ||
91 | // throw and put us back into the catch above. Isn't | ||
92 | // .NET great? | ||
93 | //if (requestStream != null) | ||
94 | // requestStream.Close(); | ||
90 | // Let's not close this | 95 | // Let's not close this |
91 | //buffer.Close(); | 96 | //buffer.Close(); |
92 | 97 | ||
@@ -112,7 +117,7 @@ namespace OpenSim.Framework.Servers.HttpServer | |||
112 | } | 117 | } |
113 | catch (Exception e) | 118 | catch (Exception e) |
114 | { | 119 | { |
115 | m_log.DebugFormat("[FORMS]: exception occured on receiving reply {0}", e.Message); | 120 | m_log.DebugFormat("[FORMS]: exception occured on receiving reply " + e.ToString()); |
116 | } | 121 | } |
117 | finally | 122 | finally |
118 | { | 123 | { |