Pool not released on Stun Timeout?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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!

Cheers
 Benny



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux