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

fix(coova-chilli): enforce HTTP/1.1 for curl compatibility #1076

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Amygos
Copy link
Member

@Amygos Amygos commented Feb 11, 2025

This PR addresses two reliability and compatibility improvements in the
coova-chilli proxy:

  • Refactored debug logging to honor the runtime _options.debug flag
    instead of compile-time _debug_ checks. This ensures debug output is
    dynamically controllable during operation, avoiding unnecessary logs when
    debugging is disabled.

  • Enforced HTTP/1.1 in curl requests to resolve protocol errors (e.g.,
    HTTP/2 stream not closed cleanly) caused by servers incompatible with
    HTTP/2. Explicitly setting the version prevents unpredictable failures and
    improves compatibility with legacy systems

@Tbaile Tbaile self-assigned this Feb 11, 2025
@Tbaile
Copy link
Contributor

Tbaile commented Feb 11, 2025

Need an issue to go with this, feel free to add one

I'll fix the CI right away (server is busy)

@Amygos Amygos self-assigned this Feb 11, 2025
@Tbaile
Copy link
Contributor

Tbaile commented Feb 12, 2025

Make sure your changes are rebased against OpenWRT 24.10

Introduce a patch to enforce HTTP/1.1 in CoovaChilli's curl requests.
This change ensures compatibility with servers requiring explicit HTTP
version declaration.
Avoid a bug with libcurl and HTTP/2:
```
Feb 10 11:42:08 box : curl error HTTP/2 stream 11 was not closed cleanly: PROTOCOL_ERROR (err 1)
```
Refactor debug logging in the coova-chilli proxy to ensure it respects
the `_options.debug` flag. This replaces direct `_debug_` checks with
conditional logging based on the runtime debug configuration.
@Tbaile
Copy link
Contributor

Tbaile commented Feb 14, 2025

Missing the issue related, this is needed for testing purposes

@Tbaile Tbaile changed the title Improve coova-chilli proxy debug handling and enforce HTTP/1.1 for curl compatibility fix(coova-chilli): enforce HTTP/1.1 for curl compatibility Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants