axios的超时是在response中处理的,所以要在response中添加拦截器: axios.interceptors.response.use(undefined, function axiosRetryInterceptor(err) { var config = err.config; // If config does not exist or the retry option is not set, reject if(!config || !config.retry) retur
//start from the very beginning,and to create greatness //@author: Chuangwei Lin //@E-mail:979951191@qq.com //@brief: SHTTPD错误处理的实现 #include "lcw_shttpd.h" //错误代码定义如下 enum { ERROR301, ERROR302, ERROR303, ERROR304, ERROR305, ERROR307, ERROR400, E
现象: PHP查询数据库较慢,大约 60s 后 nginx 返回 504:Sorry, the page you are looking for is currently unavailable. 检查log: 从 /etc/nginx/nginx.conf 找到 /var/log/nginx/access.log 和 /var/log/nginx/error.log log 显示 upstream timed out (110: Connection timed out) while read