[OpenWrt-Devel] [PATCH 0/6] increase ubus message size above 64k

Felix Fietkau nbd at openwrt.org
Thu Jul 3 06:52:09 EDT 2014

On 2014-06-27 18:11, Alexandru Ardelean wrote:
> ubus has a message size limit of about 64k.
> For some cases [like complex JSON config strings] this limit
> can be insufficient.
> Another case is when wanting to send some large base64 encoded
> strings of various (including binary) data.
> The following set of patches remove that limit.
> Currently there is no limitation to the size of the packets.
> My tests have worked stable with 10 MB strings on a 
> x86_64 + MIPS with 128 MB RAM.
> I've tested those strings for correctness with diff and meld.
> These patches are submitted for review.
> First 6 patches are the functionality update itself + fixes.
> The last patch is an update to the example server-client.
> It sends strings of numbers over ubus, and the server part
> validates it.
> The changes can also be (re)viewed here:
>    https://github.com/commodo/ubus/commits/ubus_msg_size
The patches look good, thanks! I've pushed them to git and committed the
update to OpenWrt in r41492

- Felix
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list