Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lws_extension_callback_pm_deflate: zlib error inflate -3: "invalid distance too far back" #1254

Closed
lonnywong opened this issue Nov 19, 2023 · 1 comment · Fixed by #1252
Closed
Labels

Comments

@lonnywong
Copy link
Contributor

lonnywong commented Nov 19, 2023

Describe the bug
lws_extension_callback_pm_deflate: zlib error inflate -3: "invalid distance too far back" when ssl is enabled.

To Reproduce
Steps to reproduce the behavior:

  1. git stash
  2. git checkout 3b175748c7413f02b6b3d390629a6a10414e23e2 -b test
  3. ./scripts/cross-build.sh
  4. ./build/ttyd -W -S -C server.crt -K server.key -t enableTrzsz=true bash
  5. Open https://localhost:7681/
  6. trz upload a file
  7. See the error on the console ( shell )

Expected behavior
trz upload file success when ssl is enabled.

Screenshots
Screenshot 2023-11-19 at 22 32 17

Environment:

  • OS: Ubuntu 22.04.3 LTS
  • Browser: Chrome Version 119.0.6045.105 (Official Build) (x86_64)
@lonnywong
Copy link
Contributor Author

lonnywong commented Nov 20, 2023

It works with libwebsockets main and v4.3-stable branches if -DLWS_WITH_HTTP2=ON, but not with the 4.3.2 release.

lonnywong added a commit to lonnywong/ttyd that referenced this issue Nov 20, 2023
Must set "-DLWS_WITH_HTTP2=ON", otherwise mbedtls may go wrong: tsl0922#1254
tsl0922 pushed a commit that referenced this issue Nov 21, 2023
Must set "-DLWS_WITH_HTTP2=ON", otherwise mbedtls may go wrong: #1254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant