change server ping period to be less frequent

no need to ping ws every 10 sec
This commit is contained in:
Anton Kaliaev 2017-08-08 13:21:59 -04:00
parent 23a87304cc
commit 6c85e4be4f
No known key found for this signature in database
GPG Key ID: 7B6881D965918214
2 changed files with 1 additions and 4 deletions

View File

@ -340,7 +340,7 @@ const (
writeChanCapacity = 1000
wsWriteWait = 30 * time.Second // each write times out after this.
defaultWSPongWait = 30 * time.Second
defaultWSPingPeriod = 10 * time.Second
defaultWSPingPeriod = (defaultWSPongWait * 9) / 10
)
// a single websocket connection

View File

@ -9,9 +9,6 @@ DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
# Change into that dir because we expect that.
pushd "$DIR"
echo "==> Installing deps"
go get -v
echo "==> Building the server"
go build -o rpcserver main.go