STATS: output buffer overflow, is this expected behavior?
vasilakisfil opened this issue · comments
Hello,
Building a Rust wrapper around rtpproxy, and while testing I noticed the following behavior:
DBUG:GLOBAL:rtpp_command_split:395: received command "2c37b5b1-fcb8-453f-8cf0-1e0c26d3e2ff GV nsess_created nsess_destroyed nsess_timeout nsess_complete nsess_nortp nsess_owrtp npkts_discard total_duration ncmds_rcvd ncmds_rcvd_ndups ncmds_succd ncmds_errs ncmds_repld rtpa_nsent rtpa_nrcvd rtpa_ndups rtpa_perrs"
ERR:GLOBAL:handle_get_stats:67: STATS: output buffer overflow
Is this expected? Does it mean that I tried to gather too many stats at once?
@vasilakisfil you are right. At the moment response buffer is limited to 256 bytes.
char buf_t[256];
There is not a design limitation, rather it's just I've never run over that limit in my usage scenario. The best solution is to make this buffer dynamic, however for the time being I've increased that limit 4x to 1024. Hope it helps!