You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Connections aren't actually closed when closing a protocol connection #7165
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Came up starting in #7141 (comment), short summary: A protocol connection doesn't control the underlying tls connection, thus it cannot close it. All the methods that supposedly close it, just tell the model that it's closed and potentielly send a Closed BEP msg, but don't actually close the connection.
The type hierarchy looks like this:
model has: connections.Service implemented by completeConn{internalConn, protocol.Connection} and internalConn are wrappers of the concrete underlying tls connection type (tcp, quic, ...).
The protocol connections gets a reader and a writer based on internalConn. An option would be to instead pass it a io.ReadWriteCloser, based on the same.
bugA problem with current functionality, as opposed to missing functionality (enhancement)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussionneeds-triageNew issues needed to be validated
Activity
lib: Close underlying conn in protocol (fixes syncthing#7165)
Merge branch 'main' into conref
lib: Close underlying conn in protocol (fixes syncthing#7165) (syncth…
Merge tag 'v1.13.1' into ios_try_syncthing_v1.13.1