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

checkout_timeout #359

Open
MeterSoft opened this issue Sep 26, 2018 · 5 comments
Open

checkout_timeout #359

MeterSoft opened this issue Sep 26, 2018 · 5 comments

Comments

@MeterSoft
Copy link

What does this error mean
{:error, %HTTPoison.Error{id: nil, reason: :checkout_timeout}}t

@pedep
Copy link
Contributor

pedep commented Sep 26, 2018

Seems like you are using connection pools, and they time out

https://github.com/benoitc/hackney/blob/daf085bbe673476cca05b76f99fa9d13ce2b69f5/src/hackney.erl#L242-L243

{checkout_timeout, infinity | integer()}: timeout used when checking out a socket from the pool, in milliseconds. Default is 8000

more here https://github.com/benoitc/hackney/blob/cf15810d709028421cd836272f14aa50f9058091/src/hackney_pool.erl#L64-L87

@edgurgel
Copy link
Owner

Thanks, @pedep !

@silva96
Copy link

silva96 commented Jan 31, 2019

Hi, I'm having the same error sometimes but I haven't configured any specific pool, I just want HTTPoison to be able to do unlimited request in parallel, how do I achieve this?

@lucaspiller
Copy link

The cause of this is the hackney documentation not being clear (see benoitc/hackney#507). If you don't specify any pool option, it will use the default pool. You can disable this functionality by adding this to your environment configuration:

config :hackney, use_default_pool: false

@ijunaid8989
Copy link

I have this

      :hackney_pool.child_spec(:snapshot_pool, [timeout: 5000, max_connections: 1000]),
      :hackney_pool.child_spec(:seaweedfs_upload_pool, [timeout: 5000, max_connections: 1000]),

But i am still getting the same issue

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

No branches or pull requests

6 participants