trafficserver-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mingzym <>
Subject [GitHub] trafficserver pull request #786: TS-4396: fix number_of_redirections off-by-...
Date Wed, 06 Jul 2016 16:36:36 GMT
Github user mingzym commented on a diff in the pull request:
    --- Diff: proxy/http/ ---
    @@ -1954,9 +1954,7 @@ HttpSM::state_read_server_response_header(int event, void *data)
         t_state.api_next_action       = HttpTransact::SM_ACTION_API_READ_RESPONSE_HDR;
         // if exceeded limit deallocate postdata buffers and disable redirection
    -    if (enable_redirection && (redirection_tries < t_state.txn_conf->number_of_redirections))
    -      ++redirection_tries;
    -    } else {
    +    if (enable_redirection && (redirection_tries >= t_state.txn_conf->number_of_redirections))
    --- End diff --
    I don't think so this is a break of the multiple redirection, and make the post redirection
cleanup, we are in progress of a redirection circle, and the SM is reseted, we should not
check the old information here. and if we need to stop, we don't need to check the response

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