[pjsip] Pool not released on Stun Timeout?
bennylp at pjsip.org
Tue Apr 1 14:24:01 EDT 2008
On Tue, Apr 1, 2008 at 10:14 AM, Amit Sharma <amit398 at gmail.com> wrote:
> In our application, I have observed that the tdata pool created for sending
> STUN requests is not released if the stun transaction times out. This leads
> to a huge leak in case of a network outage or if the stun server stops
> responding for a long time.
> I think the reason for the above leak is that the tdata is destroyed in
> 'on_incoming_response' fn in stun_session.c . In my opinion , tdata should
> be destroyed in the stun_tsx_on_complete callback. This would destroy tdata
> even when no response was recieved for the request. I tried the mentioned
> fix and it seemed to work for me.
I think you're right, I've fixed this in http://trac.pjsip.org/repos/ticket/519
Thanks for reporting!
More information about the pjsip