aboutsummaryrefslogtreecommitdiff
path: root/weed/operation/upload_content.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2019-01-18 14:14:47 -0800
committerChris Lu <chris.lu@gmail.com>2019-01-18 14:14:47 -0800
commit67e2ea72be5b0f5bb1f69967165a279cc3067938 (patch)
tree81c0b0e446222cf3b522a495d2761329aab044b4 /weed/operation/upload_content.go
parentdfae0f4e9df1c1b041d6c4f1f13d885bd86f0e20 (diff)
downloadseaweedfs-67e2ea72be5b0f5bb1f69967165a279cc3067938.tar.xz
seaweedfs-67e2ea72be5b0f5bb1f69967165a279cc3067938.zip
master add separate grpc port
due to https://github.com/soheilhy/cmux/issues/64 fix https://github.com/chrislusf/seaweedfs/issues/820 fix https://github.com/chrislusf/seaweedfs/issues/840 fix https://github.com/chrislusf/seaweedfs/issues/841
Diffstat (limited to 'weed/operation/upload_content.go')
-rw-r--r--weed/operation/upload_content.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/weed/operation/upload_content.go b/weed/operation/upload_content.go
index 8cf31e382..030bf5889 100644
--- a/weed/operation/upload_content.go
+++ b/weed/operation/upload_content.go
@@ -13,7 +13,6 @@ import (
"net/textproto"
"path/filepath"
"strings"
- "time"
"github.com/chrislusf/seaweedfs/weed/glog"
"github.com/chrislusf/seaweedfs/weed/security"
@@ -31,10 +30,9 @@ var (
)
func init() {
- client = &http.Client{
- Transport: &http.Transport{MaxIdleConnsPerHost: 1024},
- Timeout: 5 * time.Second,
- }
+ client = &http.Client{Transport: &http.Transport{
+ MaxIdleConnsPerHost: 1024,
+ }}
}
var fileNameEscaper = strings.NewReplacer("\\", "\\\\", "\"", "\\\"")