8000 [bug] transmission fails when message size exceeds shell limit · Issue #159 · openwisp/openwrt-openwisp-monitoring · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[bug] transmission fails when message size exceeds shell limit #159
Open
@daniel-santos

Description

@daniel-santos

Describe the bug
Some shells have a limit on the maximum command line. When sending data on my system, it always hung and never got a response while the server never received anything. I eventually figured out that the problem was that the command line was just too long.

This patch fixes the problem by sending data via --data @$filename instead of inlining the entire json in to the command.

Steps To Reproduce
Steps to reproduce the behavior:
Uncertain as to the precise conditions in which the error occurs and does not, nor as to the precise limit of the ash command line. I did discover the sending a very short message did work, though the server rejected my garbage json.

Expected behavior
Program should work under all conditions, even where the payload is very large due to whatever conditions causes it to send more data.

System Information:

root@7E-BC-BA-AB-69-02:/etc/init.d# uname -a
Linux 7E-BC-BA-AB-69-02 6.6.89 #0 SMP Mon May 26 01:40:26 2025 aarch64 GNU/Linux
root@7E-BC-BA-AB-69-02:/etc/init.d# cat /etc/os-release
NAME="OpenWRT"
VERSION="24.10-SNAPSHOT"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWRT 24.10-SNAPSHOT"
VERSION_ID="24.10-snapshot"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://support.gsat.us/"
BUILD_ID="r28530+170-315943c616"
OPENWRT_BOARD="rockchip/armv8"
OPENWRT_ARCH="aarch64_generic"
OPENWRT_TAINTS="no-all busybox"
OPENWRT_DEVICE_MANUFACTURER="Global Satellite Engineering"
OPENWRT_DEVICE_MANUFACTURER_URL="https://www.gsat.us/"
OPENWRT_DEVICE_PRODUCT="some board"
OPENWRT_DEVICE_REVISION="v1"
OPENWRT_RELEASE="OpenWRT 24.10-SNAPSHOT r28530+170-315943c616"
OPENWRT_BUILD_DATE="1748223626"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0