]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_http_websocket: Increase the buffer size for non-LOW_MEMORY systems 18/4318/1
authorMatt Jordan <mjordan@digium.com>
Fri, 4 Nov 2016 20:42:09 +0000 (15:42 -0500)
committerMatt Jordan <mjordan@digium.com>
Fri, 4 Nov 2016 20:51:28 +0000 (15:51 -0500)
commit367d4903cc76e8ea2e0b59895cf03372575169fe
treef3faa0795b4071f4323ebb2a10421f05668824c4
parentbf01ff53f8d93d637981720331405e56f0b3b118
res_http_websocket: Increase the buffer size for non-LOW_MEMORY systems

Not surprisingly, using Respoke (and possibly other systems) it is
possible to blow past the 16k limit for a WebSocket packet size. This
patch bumps it up to 32k, which, at least for Respoke, is sufficient.
For now.

Because 32k is laughable on a LOW_MEMORY system (as is 16k, for that
matter), this patch adds a LOW_MEMORY directive that sets the buffer to
8k for systems who have asked for their reduced memory availability to
be considered.

Change-Id: Id235902537091b58608196844dc4b045e383cd2e
res/res_http_websocket.c