iamthechad / grails3-recaptcha

ReCaptcha plugin for Grails 3
Other
3 stars 10 forks source link

Make restbuilder timeouts configurable #23

Closed chriserickson closed 6 years ago

chriserickson commented 6 years ago

We have started running into an intermittent problem when verifying a captcha. "Failed to connect to https://www.google.com/recaptcha/api/siteverify."

The error is bubbling up from com.megatome.grails.recaptcha.net.Post, which appears to have a hard-coded 1s read timeout. We suspect that there may be something in either our network or Google's servers that is causing the timeout to be exceeded.

It would help a lot of these timeouts were configurable to allow us to increase the timeout and see if it fixes the problem.