From e8cc21b7978311eab2df8f89b89ba879094fc9c3 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Thu, 16 May 2019 22:15:40 +0300 Subject: [PATCH] [sources] Minor updates --- sources/cmd/archiver.go | 4 ++-- sources/cmd/server.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sources/cmd/archiver.go b/sources/cmd/archiver.go index 9b63625..1acb273 100644 --- a/sources/cmd/archiver.go +++ b/sources/cmd/archiver.go @@ -688,8 +688,8 @@ func main_0 () (error) { _excludeIndex_0 := _flags.Bool ("exclude-index", false, "") _excludeStripped_0 := _flags.Bool ("exclude-strip", false, "") _excludeEtag_0 := _flags.Bool ("exclude-etag", false, "") - _excludeFileListing_0 := _flags.Bool ("include-file-listing", false, "") - _includeFolderListing_0 := _flags.Bool ("exclude-folder-listing", false, "") + _excludeFileListing_0 := _flags.Bool ("exclude-file-listing", false, "") + _includeFolderListing_0 := _flags.Bool ("include-folder-listing", false, "") _debug_0 := _flags.Bool ("debug", false, "") FlagsParse (_flags, 0, 0) diff --git a/sources/cmd/server.go b/sources/cmd/server.go index f00df8d..269905d 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -904,20 +904,20 @@ func main_0 () (error) { NoDefaultContentType : true, DisableHeaderNamesNormalizing : true, - Concurrency : 4 * 1024, + Concurrency : 4 * 1024 + 128, ReadBufferSize : 2 * 1024, WriteBufferSize : 2 * 1024, - ReadTimeout : 6 * time.Second, - WriteTimeout : 6 * time.Second, + ReadTimeout : 30 * time.Second, + WriteTimeout : 30 * time.Second, MaxKeepaliveDuration : 360 * time.Second, MaxRequestsPerConn : 256 * 1024, MaxRequestBodySize : 2 * 1024, GetOnly : true, TCPKeepalive : true, - TCPKeepalivePeriod : 6 * time.Second, + TCPKeepalivePeriod : 60 * time.Second, ReduceMemoryUsage : _httpServerReduceMemory,