We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1440f9a commit 9e1fd70Copy full SHA for 9e1fd70
p2p/server.go
@@ -25,10 +25,11 @@ const (
25
// Maximum number of concurrently dialing outbound connections.
26
maxActiveDialTasks = 16
27
28
- // maximum time allowed for reading a complete message.
29
- // this is effectively the amount of time a connection can be idle.
30
- frameReadTimeout = 1 * time.Minute
31
- // 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
+
32
+ // Maximum amount of time allowed for writing a complete message.
33
frameWriteTimeout = 5 * time.Second
34
)
35
0 commit comments