contact retry force disconnect internally any connecting over 2xcircut timeout #521
No reviewers
Labels
No Label
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cwtch.im/cwtch#521
Loading…
Reference in New Issue
No description provided.
Delete Branch "crForceDisconn"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -215,0 +217,4 @@
p := v.(*contact)
if p.state == connections.CONNECTING && time.Now().Sub(p.lastAttempt) > time.Duration(circuitTimeoutSecs)*time.Second*2 {
// we have been "connecting" for twice the circuttimeout so it's failed, we just didn't learn about it, manually disconnect
cr.handleEvent(p.id, connections.DISCONNECTED, p.ctype)
this needs to log an Error. In normal operation this should not happen, and very likely indicates a failure to handle a missing connection issue somewhere else.
bd2582f8f1
to7c3e10cdb7
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/196
@ -215,0 +218,4 @@
if p.state == connections.CONNECTING && time.Now().Sub(p.lastAttempt) > time.Duration(circuitTimeoutSecs)*time.Second*2 {
// we have been "connecting" for twice the circuttimeout so it's failed, we just didn't learn about it, manually disconnect
cr.handleEvent(p.id, connections.DISCONNECTED, p.ctype)
log.Errorf("had to manually set peer %v of profile %v to DISCONNECTED for connecting for 2xcircutTimeout (%v) seconds", p.id, cr.onion, circuitTimeoutSecs*2)
for connecting for 2xcircutTimeout
->due to a circuit timeout
perhaps?circut
has a typo also.7c3e10cdb7
to33ef2e8b23
33ef2e8b23
to93b1760c32
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/206
Drone Build Status: failure
https://build.openprivacy.ca/cwtch.im/cwtch/207
93b1760c32
tofb22efac1f
Drone Build Status: success
https://build.openprivacy.ca/cwtch.im/cwtch/208
fb22efac1f
to1f2617e4ae