diff --git a/transport/config_json.go b/transport/config_json.go index fb724bfc..95fd56e0 100644 --- a/transport/config_json.go +++ b/transport/config_json.go @@ -8,7 +8,9 @@ func (this *Config) UnmarshalJSON(data []byte) error { type JsonConfig struct { ConnectionReuse bool `json:"connectionReuse"` } - jsonConfig := new(JsonConfig) + jsonConfig := &JsonConfig{ + ConnectionReuse: true, + } if err := json.Unmarshal(data, jsonConfig); err != nil { return err } diff --git a/transport/transport.go b/transport/transport.go index c6bd97bf..ce88dd16 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -1,7 +1,7 @@ package transport var ( - connectionReuse = false + connectionReuse = true ) func IsConnectionReusable() bool {