Open jamesabravo opened 4 years ago
Please make a fork of the freeswitch repo on github, create a new branch in your fork and push changes there so we could review.
Added change to following branch... https://github.com/jamesabravo/freeswitch/tree/20200511-1300-esl-lib-fix
Any chance to apply this patch to master?
The Event Socket Library has an issue with Event Socket Outbound connections (and possibly inbound mode) whereby only the first 65535 bytes of a received event is processed and parsed after being received.
With master branch 50b7dedf82f4e03b79c87d3f271c3489e52d530b , the problem lies in libs/esl/src/esl.c:1277 which reads...
The above line takes the currently received packet, handle->packet_buf, and stores it in handle->socket_buf which is only 65536 bytes.
One solution which I'm currently using in production is to use a temporary buffer of 1M malloc'ed in the esl_recv_event() function and change the above lines to...
I've enclosed my version of esl.c if your interested.
esl.zip