websocket / pjsip: Increase maximum packet size.

When dealing with a lot of video streams on WebRTC
the resulting SDPs can grow to be quite large. This
effectively doubles the maximum size to allow more
streams to exist.

The res_http_websocket module has also been changed
to use a buffer on the session for reading in packets
to ensure that the stack space usage is not excessive.

Change-Id: I31d4351d70c8e2c11564807a7528b984f3fbdd01
This commit is contained in:
Joshua C. Colp
2020-07-22 14:57:44 -03:00
parent 9c3b57822a
commit 9f641483e6
3 changed files with 21 additions and 29 deletions

View File

@@ -65,7 +65,7 @@
Enabling it will result in SEGFAULTS when URIs containing escape sequences are encountered.
*/
#undef PJSIP_UNESCAPE_IN_PLACE
#define PJSIP_MAX_PKT_LEN 32000
#define PJSIP_MAX_PKT_LEN 65535
#undef PJ_TODO
#define PJ_TODO(x)