[SR-Users] binrpc reply sizes

Alex Balashov abalashov at evaristesys.com
Wed Oct 30 19:00:43 CET 2019


On Wed, Oct 30, 2019 at 01:46:21PM -0400, Alex Balashov wrote:

> On Wed, Oct 30, 2019 at 09:05:46AM +0100, Daniel-Constantin Mierla wrote:
> 
> > The ctl module uses system malloc by default for its internal buffers
> > related to rpc response, so it doesn't impact the allocated pkg memory.
> > 
> > It might be better to switch to jsonrpcs, which does dynamic allocation
> > for building rpc response (also using system malloc).
> 
> That's an interesting thought I hadn't considered. Kamcmd does support
> JSONRPC as an underlying transport in place of the binrpc protocol used
> by CTL, right?

Oh, I see. kamcmd is binrpc-only... the main reason I used 'ctl' is
because I became so accustomed to it, but really, interacting with
JSONRPCS over FIFO is no worse, and yields actual JSON in the response.
Thanks for the suggestion.

-- 
Alex Balashov | Principal | Evariste Systems LLC

Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) 
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/



More information about the sr-users mailing list