add some _response.close. RestClient still looks bad. It should be a
proper IDisposable object.avinationmerge
parent
9bf3e2a257
commit
df389dceb8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue