src.nth.io/

summaryrefslogtreecommitdiff
path: root/partitions.csv
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-20 10:38:46 -0500
committerLuke Hoersten <[email protected]>2026-06-20 10:38:46 -0500
commit6e36cbc14a06b8c0e15bfe78afb8adb43f8909ba (patch)
treed088af274a7cd2ce7aae8309b9795602d23bd713 /partitions.csv
parent79d3e379c6c5f9a465c9333410830e9037c6a1c7 (diff)
firmware: revert lwIP window bump — broke the stream accept path
Hypothesis confirmed by the symptoms: with WND_DEFAULT=65535, SND_BUF=65535, RECVMBOX=16, the firmware boots fine and the stream server logs "listening on tcp/:81", but Scrypted's first SYN never produces a "client connected from ..." entry. The script-side socket stays stuck in pending-connect — neither a connect nor an error event fires — and every ffmpeg-emitted frame gets dropped. Root cause is almost certainly lwIP's PBUF / MEMP pools not being scaled to back the 64KB windows on multiple sockets (httpd has 4, stream has 1, that's 5 × 64KB = 320KB of buffer commitment from a heap that's also feeding PSRAM-backed framebuffers, JPEG scratch, and Ethernet DMA). lwIP doesn't surface the allocation failure as an accept error — it just refuses to complete the handshake. Backing off the changes for now. The streaming path already hits ~14-20 fps at our measured 5.3 MB/s ingest ceiling under the lwIP defaults — that's plenty above the 12-fps goal. Revisit window tuning later by also bumping CONFIG_LWIP_PBUF_POOL_SIZE and MEMP_NUM_TCP_PCB so the buffer commitment is actually allocatable. Keeping the FIONREAD skip in stream_server (it's orthogonal to lwIP buffer sizes and only helps).
Diffstat (limited to 'partitions.csv')
0 files changed, 0 insertions, 0 deletions