]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_transport_websocket: Fix a progressive memory growth.
authorJoshua Colp <jcolp@digium.com>
Sun, 24 Aug 2014 19:18:51 +0000 (19:18 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 24 Aug 2014 19:18:51 +0000 (19:18 +0000)
commit04798bf780e617a3a0389d4b76468290437544b6
treea9d291e183f45dd99555464126af14db2c0af253
parenta27f41d174d28c0ce95bf992aea34f111ac89a7b
res_pjsip_transport_websocket: Fix a progressive memory growth.

The packet structure used to receive messages was using the transport
pool. This meant that for each parsing the pool would grow accordingly.
Since memory can not be reclaimed without resetting it this would
cause the memory pool to grow and grow.

This change uses a specific memory pool for the packet structure and
resets it to a fresh state after the message has been received and
handled.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@421939 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_transport_websocket.c