diff options
author | Justin Clark-Casey (justincc) | 2010-08-26 00:35:03 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-08-26 00:35:03 +0100 |
commit | 87a6554d4b10ebde08de91e10d050a2c7343b865 (patch) | |
tree | beb5333563ee8d0ff0604b0c7879eb7350193c61 /OpenSim/Framework | |
parent | Remove parts locking from data classes since these are using a copy of the sc... (diff) | |
parent | Prevent an object disposed exception that made forms comms unreliable. After (diff) | |
download | opensim-SC-87a6554d4b10ebde08de91e10d050a2c7343b865.zip opensim-SC-87a6554d4b10ebde08de91e10d050a2c7343b865.tar.gz opensim-SC-87a6554d4b10ebde08de91e10d050a2c7343b865.tar.bz2 opensim-SC-87a6554d4b10ebde08de91e10d050a2c7343b865.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Resolve merge conflicts
Conflicts:
OpenSim/Region/Framework/Scenes/SceneGraph.cs
Diffstat (limited to '')
-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 | { |