aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-06-09 18:10:40 +0800
committerFelix Lange <fjl@twurst.com>2015-06-09 23:07:10 +0800
commit3239aca69bd940626f3e27ab829fc7fa1c7cdc5e (patch)
treee3bcdebbe88f738d7fbe610da77713ff9cb9a2a8 /p2p
parent2c24a73e253a0b0c205406c7dc9fc4b8a7d97e86 (diff)
downloaddexon-3239aca69bd940626f3e27ab829fc7fa1c7cdc5e.tar.gz
dexon-3239aca69bd940626f3e27ab829fc7fa1c7cdc5e.tar.zst
dexon-3239aca69bd940626f3e27ab829fc7fa1c7cdc5e.zip
p2p: bump global write timeout to 20s
The previous value of 5 seconds causes timeouts for legitimate messages if large messages are sent.
Diffstat (limited to 'p2p')
-rw-r--r--p2p/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 589041810..59b97a0aa 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -30,7 +30,7 @@ const (
frameReadTimeout = 30 * time.Second
// Maximum amount of time allowed for writing a complete message.
- frameWriteTimeout = 5 * time.Second
+ frameWriteTimeout = 20 * time.Second
)
var errServerStopped = errors.New("server stopped")