From 96d1891c7187c3d54ace8c51229a05546bda0d20 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Wed, 30 Jul 2008 16:21:01 +0000 Subject: From: Richard Alimi The following is a patch that causes HTTP connections made by llHTTPRequest to be closed once the response is read. --- .../Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs') diff --git a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs index c670ad7..7677834 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs @@ -362,6 +362,11 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest finished = true; return; } + finally + { + if (response != null) + response.Close(); + } status = (int)OSHttpStatusCode.SuccessOk; finished = true; -- cgit v1.1