mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
add some _response.close. RestClient still looks bad. It should be a
proper IDisposable object.
This commit is contained in:
@@ -326,6 +326,9 @@ namespace OpenSim.Framework.Communications
|
||||
m_log.Debug(e.ToString());
|
||||
}
|
||||
|
||||
if (_response != null)
|
||||
_response.Close();
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -390,6 +393,9 @@ namespace OpenSim.Framework.Communications
|
||||
|
||||
_response = (HttpWebResponse) _request.GetResponse();
|
||||
|
||||
if (_response != null)
|
||||
_response.Close();
|
||||
|
||||
// IAsyncResult responseAsyncResult = _request.BeginGetResponse(new AsyncCallback(ResponseIsReadyDelegate), _request);
|
||||
|
||||
// TODO! Implement timeout, without killing the server
|
||||
|
||||
Reference in New Issue
Block a user