Failed to paste more than 2035 characters with libwebsockets >= 4.4.0
Author: eruscCreated Apr 24, 2026Updated May 15, 2026
Labelsbug
Describe the bug
With Docker image tsl0922/ttyd:1.7.8, whenever I try to paste more than 2035 characters it just reconnect.
To Reproduce Steps to reproduce the behavior:
- Just paste more than 2035 characters.
- See error
[2026/04/24 18:21:38:8866] E: [wsisrv|1|default|(null)|127.0.0.1]: lws_extension_callback_pm_deflate: rx buffer underflowExpected behavior It worked fine on 1.7.7.
Screenshots If applicable, add screenshots to help explain your problem.
Environment:
- OS: Windows, Linux
- Browser: Chrome, Firefox
Additional context It seems to be related to this commit: https://github.com/warmcat/libwebsockets/commit/6a2542ded78ec41395a256dc20976ec2800d357b If I undo the commit or just build with a version (4.3.10 for example) without the commit, I can once again paste very-long text like in 1.7.7.
Source: tsl0922/ttyd