2008/11/24 Timo Bruhn <[EMAIL PROTECTED]>:
> Now nua sends a bye with session timeout to the proxy after 400-400/3 -32 
> (approximately 235) seconds.
>
> This is too early in my opinion.
>
> RFC 4028 Section 10 says:
>   "Similarly, if the side not performing refreshes does not receive a
>   session refresh request before the session expiration, it SHOULD send
>   a BYE to terminate the session, slightly before the session
>   expiration.  The minimum of 32 seconds and one third of the session
>   interval is RECOMMENDED."
>
> This has been referenced in nua_session.c in function session_timer_set and
> the following calculations are done:
>
>  interval -= 32 >interval / 6 ? interval / 3 : 32 + interval /3
>
> I think the RFC could also be interpreted as:
>
>  interval -= 32 > interval / 3 ? interval / 3 : 32;
>
> Maybe the RFC is a bit unclear here, but the second code line should be more
> tolerant with user agents that don't refresh the session at half of the 
> expiration
> time (which is recommended by the RFC).

As far as I can recall the current calculation is because some
protocol tester wanted it that way; your approach works probably
better in practice. I'll check if there is something that breaks with
that change (probably not) and submit a patch.

-- 
Pekka.Pessi mail at nokia.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to