Skip to content

[Bug] Tunnel node ignores batch size limit on raw MP4 streams, causing 50MB Apps Script truncation #460

@bankbunk

Description

@bankbunk

Describe the bug
When streaming raw .mp4 video files in Full Tunnel mode, mhrv-tunnel-node appears to ignore batch size limits. Because my VPS has a high-speed connection (1 Gbps), it aggressively buffers the video data and packs it into a single massive JSON payload.

The batch hits exactly ~52.4MB, which triggers Google Apps Script's hard memory limit. Google truncates the response, causing the Rust client to crash and instantly kill the video stream.

Log
ERROR batch JSON parse error: EOF while parsing a string at line 1 column 52428685

Workaround / Proof of Cause
I confirmed this is caused by the buffer filling too fast. When I used wondershaper to strictly limit the VPS network interface to 40 Mbps, the stream worked perfectly because the node was forced to send manageable chunks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions