mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-08-05 00:04:12 +00:00
Increase default socket timeouts
This commit is contained in:
parent
3c2c24038d
commit
83b40e10e5
2 changed files with 3 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue