Implement parameterization of HTTP_BODY_MAXLENGTH maximum as proposed in Mantis 7839.

LSLKeyTest
Jeff Kelley 2016-03-14 11:42:28 +01:00 committed by Melanie Thielker
parent 07b78a68fc
commit 41644bbfa9
3 changed files with 15 additions and 1 deletions

View File

@ -365,6 +365,8 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
m_proxyurl = config.Configs["Startup"].GetString("HttpProxy");
m_proxyexcepts = config.Configs["Startup"].GetString("HttpProxyExceptions");
HttpRequestClass.HttpBodyMaxLenMAX = config.Configs["Network"].GetInt("HttpBodyMaxLenMAX", 16384);
m_outboundUrlFilter = new OutboundUrlFilter("Script HTTP request module", config);
int maxThreads = 15;
@ -454,7 +456,7 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
get { return _finished; }
}
public const int HttpBodyMaxLenMAX = 16384;
public static int HttpBodyMaxLenMAX = 16384;
// Parameter members and default values
public int HttpBodyMaxLen = 2048;

View File

@ -522,6 +522,12 @@
;
; See http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing#CIDR_notation for more information on CIDR notation
;# {HttpBodyMaxLenMAX} {} {Maximum bytes allowed for HTTP_BODY_MAXLENGTH} {} 16384
;; By default, llHTTPRequest limits the response body to 2048 bytes.
;; This limit can be extended using HTTP_BODY_MAXLENGTH to a maximum
;; of HttpBodyMaxLenMAX bytes.
; HttpBodyMaxLenMAX=16384
;# {ExternalHostNameForLSL} {} {Hostname to use for HTTP-IN URLs. This should be reachable from the internet.} {}
;; Hostname to use in llRequestURL/llRequestSecureURL
;; if not defined - default machine name is being used

View File

@ -527,6 +527,12 @@
; Password for cert
; cert_pass = "password"
; Maximum bytes allowed for HTTP_BODY_MAXLENGTH.
; By default, llHTTPRequest limits the response body to 2048 bytes.
; This limit can be extended using HTTP_BODY_MAXLENGTH to a maximum
; of HttpBodyMaxLenMAX bytes.
; HttpBodyMaxLenMAX=16384
; Hostname to use in llRequestURL/llRequestSecureURL
; if not defined - default machine name is being used
; (on Windows this mean NETBIOS name - useably only inside local network)