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

Customizing connect timeout (Failed to connect to Recurly.) #49

Closed
BobuSumisu opened this issue Dec 30, 2012 · 2 comments
Closed

Customizing connect timeout (Failed to connect to Recurly.) #49

BobuSumisu opened this issue Dec 30, 2012 · 2 comments
Labels
V2 V2 Client

Comments

@BobuSumisu
Copy link

I was setting up Recurly for the first time and had some problems figuring out why nothing worked.

It turned out to be the (rather low?) connect timeout option to curl. I don't know if there is something wrong with my local setup or recurly is just slow accepting my connection right now, but I changed the 10 seconds to 30 and now everything is working smoothly (slow but smoothly :P).

I do not like editing vendor libraries directly and just wondered why this is so low, and if it was possible to make this customizable in a 'pretty' manner?

@mbeale
Copy link

mbeale commented Jan 2, 2013

@BobuSumisu

10 seconds should be more than enough to connect to recurly. Most GET requests respond quickly and there might be delays when updating billing information because Recurly is waiting for a response from the gateway you are using to see if you provided a valid card. 10 seconds should provide you with extra cushion. I would say requests probably would not take more that 5 seconds tops.

Currently the only way to edit this would be to manually change the code.

Have you tried manually using curl -v to see where the hold up is? Could be name lookup, transfer time, or connection related issue.

Or you could use this function in PHP to help.
http://php.net/manual/en/function.curl-getinfo.php

@BobuSumisu
Copy link
Author

Tested the same application on the same laptop but on another network: it worked instantly.

I suspect there are some hickups with my laptop/router combination at home then.

Thanks for the information though - it will be used to debug my home setup :)

@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

No branches or pull requests

3 participants