Skip to content

Instantly share code, notes, and snippets.

@ferd
Created November 27, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ferd/6713ec595daa1678f88c to your computer and use it in GitHub Desktop.
Save ferd/6713ec595daa1678f88c to your computer and use it in GitHub Desktop.
16> hackney:get(<<"http://169.254.169.254/latest/meta-data/iam/security-credentials/">>, [], <<>>, [{connect_timeout,5000},{recv_timeout,5000}]).
{error,timeout} % <-- this is good
17> hackney:get(<<"http://169.254.169.254/latest/meta-data/iam/security-credentials/">>, [], <<>>, [{connect_timeout,5000},{recv_timeout,5000}]).
{error,closed} % <--- why is there no retry?
18> hackney:get(<<"http://169.254.169.254/latest/meta-data/iam/security-credentials/">>, [], <<>>, [{connect_timeout,5000},{recv_timeout,5000}]).
{error,closed} % <--- why is there no retry?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment