aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'p2p/server.go')
-rw-r--r--p2p/server.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/p2p/server.go b/p2p/server.go
index 27e617610..af08380e1 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -25,10 +25,11 @@ const (
// Maximum number of concurrently dialing outbound connections.
maxActiveDialTasks = 16
- // maximum time allowed for reading a complete message.
- // this is effectively the amount of time a connection can be idle.
- frameReadTimeout = 1 * time.Minute
- // maximum amount of time allowed for writing a complete message.
+ // Maximum time allowed for reading a complete message.
+ // This is effectively the amount of time a connection can be idle.
+ frameReadTimeout = 30 * time.Second
+
+ // Maximum amount of time allowed for writing a complete message.
frameWriteTimeout = 5 * time.Second
)