用google recaptha 2提交表单后,有时服务器返回504错误。在错误日志文件
中*28826 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 176.37.xxx.x, server: xxx.com, request: "POST /Adventure/ HTTP/1.1", upstream:
我不确定,但我认为这是谷歌通过卷曲的缓慢反应。
请帮助我找出为什么谷歌会让我的回复如此缓慢以及如何增加服务器超时或解决我的问题呢? 顺便说一句,我使用yii2和这个recaptcha模块https://github.com/himiklab/yii2-recaptcha-widget
yii日志文件
file_get_contents(https://www.google.com/recaptcha/api/siteverify?secret=xxxxxxxxremoteip=178.255.xxx.xxx): failed to open stream: Connection timed out in /var/www/xxxxx.com/public_html/vendor/himiklab/yii2-recaptcha-widget/ReCaptchaValidator.php:98