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

Change HttpProtocol to defer to configured values for retryOnConnectionFailure and followRedirects #1056

Merged
merged 3 commits into from
Apr 17, 2023

Conversation

ndtreviv
Copy link
Contributor

In this version we defer to the configuration for the okhttp client settings on:

.retryOnConnectionFailure
.followRedirects

The rationale behind this is that a lot of sites are increasingly introducing DDos protection strategies and bot checks. For example, DDos Guard is a popular one. One such check is the "HTTP Challenge" which issues a simple 302 response to the first request. If the requestor is a bot engaged in denial of service activities it is expected to just ignore it and end another request.
Simply by following redirects we can overcome this.

Disclaimer: I haven't squashed my commits because you can do that on merge these days, which is much easier.

Signed-off-by: nathan <nathan@cameraforensics.com>
…ault conf for documentation

Signed-off-by: nathan <nathan@cameraforensics.com>
Signed-off-by: nathan <nathan@cameraforensics.com>
@jnioche jnioche added the core label Apr 17, 2023
@jnioche jnioche added this to the 2.9 milestone Apr 17, 2023
@jnioche jnioche merged commit e473dea into apache:master Apr 17, 2023
3 checks passed
@jnioche
Copy link
Contributor

jnioche commented Apr 17, 2023

Thanks @ndtreviv for the PR and @rzo1 for the review

@ndtreviv ndtreviv deleted the allow-redirect-config branch April 17, 2023 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants