albertcht / invisible-recaptcha

An invisible reCAPTCHA package for Laravel, Lumen, CI or native PHP.
MIT License
603 stars 162 forks source link

Add the possibility to set the timeout of Guzle client #43

Closed meyer59 closed 7 years ago

meyer59 commented 7 years ago

For slow connection, i want to solve this error GuzzleHttp\Exception\ConnectException cURL error 28: Resolving timed out after 5514 milliseconds (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

albertcht commented 7 years ago

Hi @meyer59 , thanks for your pull request. There are too many configs to inject to the constructor. Therefore, I refactored the configs part to keep code cleaner and more elegant. Timeout config will be available in release v1.8. Please see document for more detail. Any other PR or suggestion is welcome, thank you! :)