Make Large File Handling configurable and Default from 5MiB to 512KiB and BlockSize from 3MiB to 64KiB
This commit is contained in:
parent
11ea5611bb
commit
2f44cf1149
2 changed files with 12 additions and 4 deletions
13
lweb.pbi
13
lweb.pbi
|
@ -114,9 +114,8 @@ Module lhs_web
|
|||
configuration\cache\maxsize = 1 ; Max Cache
|
||||
configuration\cache\current = 0 ;
|
||||
|
||||
configuration\mem\MaxFileSize = 5242880 ; Default 5 MiB
|
||||
configuration\mem\DefaultBlockSize = 3145728; Default Blocksize 3MiB
|
||||
;configuration\mem\DefaultBlockSize = 65536 ; Default Blocksize 64 KiB
|
||||
configuration\mem\MaxFileSize = 524288 ; Default 512 KiB
|
||||
configuration\mem\DefaultBlockSize = 65536 ; Default Blocksize 64 KiB
|
||||
|
||||
|
||||
Enumeration s_client_do ;client_do_cli
|
||||
|
@ -258,6 +257,10 @@ Module lhs_web
|
|||
|
||||
Procedure set_config(parameter.i=#conf_defaultfile, setting.s="index.html")
|
||||
Select parameter
|
||||
Case #conf_File_BlockSize
|
||||
configuration\mem\DefaultBlockSize = Val(setting)
|
||||
Case #conf_File_max_in_Memory
|
||||
configuration\mem\MaxFileSize = Val(setting)
|
||||
Case #conf_Access_logfile
|
||||
configuration\log\Accesslog = setting
|
||||
Case #conf_Error_logfile
|
||||
|
@ -338,6 +341,10 @@ Module lhs_web
|
|||
|
||||
Procedure.s get_config(parameter.i=#conf_defaultfile)
|
||||
Select parameter
|
||||
Case #conf_File_BlockSize
|
||||
ProcedureReturn Str(configuration\mem\DefaultBlockSize)
|
||||
Case #conf_File_max_in_Memory
|
||||
ProcedureReturn Str(configuration\mem\MaxFileSize)
|
||||
Case #conf_Access_logfile
|
||||
ProcedureReturn configuration\log\Accesslog
|
||||
Case #conf_Error_logfile
|
||||
|
|
|
@ -30,7 +30,8 @@ DeclareModule lhs_web
|
|||
#conf_error400
|
||||
#conf_max_HTTP_clients
|
||||
#conf_max_HTTPS_clients
|
||||
#conf_max_File_in_Memory
|
||||
#conf_File_max_in_Memory
|
||||
#conf_File_BlockSize
|
||||
#conf_server_type
|
||||
#conf_cache_enable
|
||||
#conf_HTTPS_CA
|
||||
|
|
Loading…
Reference in a new issue