If a map request to a server fails, always close the outbound connection.
This probably doesn't help with the current memory leak.bulletsim
parent
ed142ead25
commit
78ff82bfe9
|
@ -682,7 +682,6 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
mapitemsrequest.ContentLength = buffer.Length; //Count bytes to send
|
mapitemsrequest.ContentLength = buffer.Length; //Count bytes to send
|
||||||
os = mapitemsrequest.GetRequestStream();
|
os = mapitemsrequest.GetRequestStream();
|
||||||
os.Write(buffer, 0, buffer.Length); //Send it
|
os.Write(buffer, 0, buffer.Length); //Send it
|
||||||
os.Close();
|
|
||||||
//m_log.DebugFormat("[WORLD MAP]: Getting MapItems from {0}", httpserver);
|
//m_log.DebugFormat("[WORLD MAP]: Getting MapItems from {0}", httpserver);
|
||||||
}
|
}
|
||||||
catch (WebException ex)
|
catch (WebException ex)
|
||||||
|
@ -705,6 +704,11 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
|
||||||
responseMap["connect"] = OSD.FromBoolean(false);
|
responseMap["connect"] = OSD.FromBoolean(false);
|
||||||
return responseMap;
|
return responseMap;
|
||||||
}
|
}
|
||||||
|
finally
|
||||||
|
{
|
||||||
|
if (os != null)
|
||||||
|
os.Close();
|
||||||
|
}
|
||||||
|
|
||||||
string response_mapItems_reply = null;
|
string response_mapItems_reply = null;
|
||||||
{ // get the response
|
{ // get the response
|
||||||
|
|
Loading…
Reference in New Issue