trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpeach <>
Subject [GitHub] trafficserver pull request #786: TS-4396: fix number_of_redirections off-by-...
Date Tue, 05 Jul 2016 17:46:32 GMT
Github user jpeach commented on a diff in the pull request:
    --- Diff: proxy/http/ ---
    @@ -7618,6 +7616,8 @@ HttpSM::do_redirect()
    +  redirection_tries++;
    --- End diff --
    Right below here, we repeat the test on ``number_of_redirections`` with ``is_redirect_required().
The condition is different however, since this code will not redirect with ``number_of_redirections``
and ``is_redirect_required()`` will.
    I don't think that this is the right place to increment ``redirection_tries``, though
it is an improvement. How about incrementing it in ``redirect_request()``? Or at least defer
until we know we are actually going to call ``redirect_request``.
    We should restructure this function like this:
    if (!is_redirect_required()) {
        enable_redirection = false;

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message