Repository navigation
Remove unnecessary storing of redirect_url in redirect_info - #4962
Merged
Merged
Conversation
bryancall
approved these changes
Feb 11, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We have been having very frequent crashes with our forward caching machines running with follow redirect enabled. It seems to have started occurring when we changed our compiler to gcc 6.2.3. If I recompile with gcc7 the crash goes away. Otherwise, it crashes within 5 minutes. Seems likely there is some underlying issue which the stack trace is so consistent.
I had thought that we fixed it in PR #4902, but alas our production builds are still showing this crash.
So this PR just pulls out storing redirect_info.redirect_url entirely. It doesn't seem like it should be necessary. The client_request URL is set in HttpSM::redirect_request. Then it is reset from redirect_info.redirect_url in HttpTransact::build_request. The comment above that reassignment is below which implies there is some path through the cache logic that will scrozzle the client request URL so we must reset it. I cannot see that scenario. I ran a patched version that did additional URL testing and ran it in our environment, and there never seemed to be a meaningful reset of the redirect url.
Of course running in one environment is not exhaustive. Perhaps there are others longer with the project or more intimately acquainted with the follow redirect logic who know why and whether it is necessary to store and reset the redirect_url.