Skip to content

config var for default connection timeout #383

Description

@raedah

"no answer for 5m0s -- disconnecting"
https://github.com/decred/dcrd/blob/master/peer/peer.go#L53

On an uplink that intermittently will drop all connections, 5m is really too long because thats easily the length of a whole block cycle, and a stake vote could get missed. I would like this to be a user config setting, and I would probably set it to 30 seconds for myself.

Or maybe it just makes sense to reduce the default const to 30 sec like the other const timeouts.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions