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

SetProxyFunc: fix proxies rotation #567

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

wowinter13
Copy link
Contributor

Hey!
I think SetProxyFunc() could simply override DisableKeepAlives and set it true as the default value. Otherwise, it will rotate proxies only on failed requests.

Also, you can reproduce this issue exactly with the example http://go-colly.org/docs/examples/proxy_switcher/

This PR addresses the issue #339

@wowinter13
Copy link
Contributor Author

@asciimoo What do you think?

Copy link
Member

@asciimoo asciimoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@asciimoo asciimoo merged commit 51adaf4 into gocolly:master Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants