Skip to content

proxy.config.http.number_of_redirections with hit_stale #7200

Closed

Description

@mlibbey

In testing ATS 9, one of our properties overrides proxy.config.http.number_of_redirections. When the object is stale in cache, ATS returns the 302 instead of chasing the redirect. It appears very reproducible for the 1 property that uses it.

Activity

  1. added this to the 9.0.0 milestone on Sep 17, 2020
  2. ywkaras commented on Sep 21, 2020

    @ywkaras

    I'm trying to look at this, but am a novice in this area, help welcome.

  3. mlibbey commented on Sep 22, 2020

    @mlibbey
    ContributorAuthor

    There are a few recent commits around this
    #6589
    #6561
    #4962
    #4902
    perhaps more too...

  4. ywkaras commented on Sep 23, 2020

    @ywkaras

    I think I've got a simple test that reproduces the problem. Works in 8.1.x but not on master.
    ywkaras@7c1545f

  5. ywkaras commented on Sep 23, 2020

    @ywkaras

    It looks like the change in behavior is due to the added call to HttpTransact::is_cache_hit() is the cause of the change in behavior:

    !HttpTransact::is_cache_hit(t_state.cache_lookup_result));
    .
    This call is not present in the 8.1.x code:
    bool redirect_required = (enable_redirection && (redirection_tries <= t_state.txn_conf->number_of_redirections));
    .

  6. ywkaras commented on Sep 23, 2020

    @ywkaras

    This is the PR that introduced the above change: #4289 . @SolidWallOfCode any insights?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions