|
|
@ -25,10 +25,11 @@ const ( |
|
|
|
// Maximum number of concurrently dialing outbound connections.
|
|
|
|
// Maximum number of concurrently dialing outbound connections.
|
|
|
|
maxActiveDialTasks = 16 |
|
|
|
maxActiveDialTasks = 16 |
|
|
|
|
|
|
|
|
|
|
|
// maximum time allowed for reading a complete message.
|
|
|
|
// Maximum time allowed for reading a complete message.
|
|
|
|
// this is effectively the amount of time a connection can be idle.
|
|
|
|
// This is effectively the amount of time a connection can be idle.
|
|
|
|
frameReadTimeout = 1 * time.Minute |
|
|
|
frameReadTimeout = 30 * time.Second |
|
|
|
// maximum amount of time allowed for writing a complete message.
|
|
|
|
|
|
|
|
|
|
|
|
// Maximum amount of time allowed for writing a complete message.
|
|
|
|
frameWriteTimeout = 5 * time.Second |
|
|
|
frameWriteTimeout = 5 * time.Second |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|