Increase default socket timeouts

This commit is contained in:
Sergey Stepanov 2023-03-29 13:37:01 +03:00
parent 3c2c24038d
commit 83b40e10e5
No known key found for this signature in database
GPG key ID: A56B4929BAA8556B
2 changed files with 3 additions and 3 deletions

View file

@ -71,7 +71,7 @@ type request struct {
response []byte
}
const DefaultCallTimeout = 5 * time.Second
const DefaultCallTimeout = 7 * time.Second
var errCanceled = errors.New("canceled")
var errTimeout = errors.New("timeout")

View file

@ -14,8 +14,8 @@ import (
const (
maxMessageSize = 10 * 1024
pingTime = pongTime * 9 / 10
pongTime = 5 * time.Second
writeWait = 1 * time.Second
pongTime = 6 * time.Second
writeWait = 2 * time.Second
)
type Client struct {