res_pjsip_transport_websocket: Fix a progressive memory growth.
authorJoshua Colp <jcolp@digium.com>
Sun, 24 Aug 2014 19:21:33 +0000 (19:21 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 24 Aug 2014 19:21:33 +0000 (19:21 +0000)
commit477e2e6edb5a66091dafdb77f61caa3638c2efd5
tree3cd10253b96fda3064b744163c9e731f6e030e0a
parent2c0cbf8e64f1d79d4d11a3fc1acb7e10e6b44a20
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.
........

Merged revisions 421939 from http://svn.asterisk.org/svn/asterisk/branches/12
........

Merged revisions 421945 from http://svn.asterisk.org/svn/asterisk/branches/13

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