[sr-dev] patch porposal for usrloc: close TCP connections

Olle E. Johansson oej at edvina.net
Thu Feb 26 07:57:49 CET 2015


On 25 Feb 2015, at 19:05, Camille Oudot <camille.oudot at orange.com> wrote:

> Hi,
> 
> I want to propose a patch to usrloc:
> 
> https://github.com/kamailio/kamailio/commit/14852a98ed46b7a88c92bff31c319d26b6410efb
> 
> this patch adds a new parameter, close_expired_tcp, that makes usrloc
> request the main TCP process to end the connections of expired
> registrations (assuming 1 connection = 1 contact).
> 
> It enables to release resources on the system ASAP, in the event of a
> lost connection (e.g. when clients are on mobile networks).
> 
> Any thoughts?

As you indicate, if the registrar is behind an outbound server, we should not close.
This is indicated by a path header normally.

If there's no path, I wonder if there is any reason not to make this a default
behaviour? Why keep the connection?

/O


More information about the sr-dev mailing list