-
Notifications
You must be signed in to change notification settings - Fork 100
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
Lot's of retry_later errors, how to increase maximum sessions and pipline size? #122
Comments
retry_later
errors, how to increase maximum sessions and pipline size?
There's an example of passing ibrowse options in the readme: HTTPotion.get "https://check-tls.akamaized.net", [ ibrowse: [ ssl_options: [ versions, [:'tlsv1.1'] ] ] ] And you can use the |
Using Unfortunately, this does not fix my Am I using the options right? |
Yes, that should be how you set them.
You can also try direct mode. Or throttle your requests with something like ex_rated. references: #21 cmullaparthi/ibrowse#147 |
I don't get how direct mode works. I spawn a worker for myself, and use it whenever I want. Right? Does this worker have a life span or something? How do I know when it is working, or I should spawn another one? Also, can I somehow not use pool or sessions or anything from |
That's what direct mode does. It skips ibrowse's pool. You probably need to spawn a worker on every request. |
I see a lot of
retry_later
errors in production.Searching a bit, I found that I need to set maximum number of sessions and pipeline size (right?).
How can I set that using
HTTPotion
? I found the api to do that inibrowse
here, but I'm not sure where to put them.Also, those functions let me increase it for a specific domain/port. How can I set globally?
The text was updated successfully, but these errors were encountered: