Re: [OpenSIPS-Devel] [opensips] Proposed fix for erratic nat_traversal keepalives (#751)

2016-01-12 Thread aerringer
Saúl, I see that each process registers a timer. I would expect to see that the timer would fire in each process once per interval. What I see is that once per second the timer callback to keepalive_timer is called on just one process at a time. A second later it's called on another process. Y

[OpenSIPS-Devel] [opensips] Proposed fix for erratic nat_traversal keepalives (#751)

2016-01-11 Thread aerringer
Earlier, one process handled nat_traversal timeouts, so static iteration counter correctly distributed keepalives across timeout interval. Now timeouts are sent to various processes, each of which had its own counter, resulting in erratic keepalive delivery. Fix moves the iteration counter into s