diff options
author | Dr Scofield | 2008-07-30 16:21:01 +0000 |
---|---|---|
committer | Dr Scofield | 2008-07-30 16:21:01 +0000 |
commit | 96d1891c7187c3d54ace8c51229a05546bda0d20 (patch) | |
tree | be67c907707b1ab418db9e388fbb50056772e87f /OpenSim/Region/Environment/Modules | |
parent | * Applying Mantis #1852 - Plugin Provider refactoring. Courtesy of Ryan/Sempuki. (diff) | |
download | opensim-SC_OLD-96d1891c7187c3d54ace8c51229a05546bda0d20.zip opensim-SC_OLD-96d1891c7187c3d54ace8c51229a05546bda0d20.tar.gz opensim-SC_OLD-96d1891c7187c3d54ace8c51229a05546bda0d20.tar.bz2 opensim-SC_OLD-96d1891c7187c3d54ace8c51229a05546bda0d20.tar.xz |
From: Richard Alimi <ralimi@us.ibm.com>
The following is a patch that causes HTTP connections made by llHTTPRequest
to be closed once the response is read.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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 | |||
362 | finished = true; | 362 | finished = true; |
363 | return; | 363 | return; |
364 | } | 364 | } |
365 | finally | ||
366 | { | ||
367 | if (response != null) | ||
368 | response.Close(); | ||
369 | } | ||
365 | 370 | ||
366 | status = (int)OSHttpStatusCode.SuccessOk; | 371 | status = (int)OSHttpStatusCode.SuccessOk; |
367 | finished = true; | 372 | finished = true; |