Skip to content

[FEATURE] Consistence of TCP/TLS connections and usrloc data #1769

@vasilevalex

Description

@vasilevalex

Is your feature request related to a problem? Please describe.

Now if TCP/TLS connection is lost, contact is still in usrloc database. And we have to wait until expiration (long time) or use OPTIONS ping (rudiment from UDP). And vice versa, if for some reason contact was deleted from usrloc database (e.g. issue #1580 ), TCP/TLS connection still can be alive and phone has no errors, as it is still in REGISTERED state, but all the calls to the phone are dropped by proxy.

Describe the solution you'd like
So it would be nice to destroy TCP/TLS connection if related contact is deleted from usrloc. And delete contact if its' connection was destroyed. So usrloc database will be consistent with alive TCP/TLS connections.

Implementation

  • Component: core, usrloc module

Additional context
Of course there can be TCP/TLS connections which has no usrloc contacts - they just should not have this relation and processed as currently.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions