aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications
diff options
context:
space:
mode:
authorUbitUmarov2014-09-17 16:19:00 +0100
committerUbitUmarov2014-09-17 16:19:00 +0100
commitdf389dceb8b9430049c3bedf3632b4df2eb91e15 (patch)
treeaa3e76f2be916c2b1859a217fdeceb053e1ae593 /OpenSim/Framework/Communications
parentdispose some tmp streams (diff)
downloadopensim-SC-df389dceb8b9430049c3bedf3632b4df2eb91e15.zip
opensim-SC-df389dceb8b9430049c3bedf3632b4df2eb91e15.tar.gz
opensim-SC-df389dceb8b9430049c3bedf3632b4df2eb91e15.tar.bz2
opensim-SC-df389dceb8b9430049c3bedf3632b4df2eb91e15.tar.xz
add some _response.close. RestClient still looks bad. It should be a
proper IDisposable object.
Diffstat (limited to 'OpenSim/Framework/Communications')
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index de34250..ce36fbf 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -326,6 +326,9 @@ namespace OpenSim.Framework.Communications
326 m_log.Debug(e.ToString()); 326 m_log.Debug(e.ToString());
327 } 327 }
328 328
329 if (_response != null)
330 _response.Close();
331
329 return null; 332 return null;
330 } 333 }
331 334
@@ -390,6 +393,9 @@ namespace OpenSim.Framework.Communications
390 393
391 _response = (HttpWebResponse) _request.GetResponse(); 394 _response = (HttpWebResponse) _request.GetResponse();
392 395
396 if (_response != null)
397 _response.Close();
398
393// IAsyncResult responseAsyncResult = _request.BeginGetResponse(new AsyncCallback(ResponseIsReadyDelegate), _request); 399// IAsyncResult responseAsyncResult = _request.BeginGetResponse(new AsyncCallback(ResponseIsReadyDelegate), _request);
394 400
395 // TODO! Implement timeout, without killing the server 401 // TODO! Implement timeout, without killing the server