good morning!!!!

Skip to content
Snippets Groups Projects
Commit 9e1fd70b authored by Felix Lange's avatar Felix Lange
Browse files

p2p: decrease frameReadTimeout to 30s

This detects hanging connections sooner. We send a ping every 15s and
other implementation have similar limits.
parent 1440f9a3
Branches
Tags
No related merge requests found
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment