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 ulimited body parsing #1983

Merged
merged 4 commits into from
Oct 27, 2023
Merged

Fix ulimited body parsing #1983

merged 4 commits into from
Oct 27, 2023

Commits on Oct 20, 2023

  1. Fix ulimited body parsing

    If the response doesn't have body tempesta parses the body until the connection
    is closed, in this case need to update overall body size and don't make
    chunks.
    
    -Added error handling to `tfw_cache_h2_copy_body()`
    const-t committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    b61a76e View commit details
    Browse the repository at this point in the history
  2. Add body iterator

    There is copule of places where need to iterate over http message body.
    For this purposes has been added body iterator. Just initialize
    iterator and chunk using `tfw_body_iter_init()` with error handling.
    Use `TFW_BODY_ITER_WALK` macro for walking over the body as TfwStr.
    
    tfw_apm_hm_srv_alive(): Calculate crc32 for message body using body
    itertor instead of looping invalid TfwStr.
    const-t committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    a88fd88 View commit details
    Browse the repository at this point in the history
  3. Remove unused macro

    const-t committed Oct 20, 2023
    Configuration menu
    Copy the full SHA
    085b6bd View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2023

  1. Configuration menu
    Copy the full SHA
    a1ab450 View commit details
    Browse the repository at this point in the history