所以我的朋友有一个响应错误的服务器,例如这个请求:
time curl -vv 'http://x.x.x.x/~a/fsocial/json_eod_per_code/PTBA-2014-2-c.json'
* Hostname was NOT found in DNS cache
* Trying x.x.x.x...
* Connected to x.x.x.x (x.x.x.x) port 80 (#0)
> GET /~bei50001/fsocial/json_eod_per_code/PTBA-2014-2-c.json HTTP/1.1
> User-Agent: curl/7.37.0
> Host: x.x.x.x
> Accept: */*
>
* Recv failure: Connection reset by peer
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
real 2m0.398s
user 0m0.007s
sys 0m0.000s
但在自定义日志上显示为200 OK:
my.ip.addr.es - - [03/Jul/2014:06:25:33 +0400] "GET /~a/fsocial/json_eod_per_code/PTBA-2014-2-c.json HTTP/1.1" 200 2371 "-" "curl/7.37.0"
还有什么我应该检查的吗?httpd.conf
看起来没问题,他说今天突然发生的。
而且mtr
结果看起来也还不错。
当使用该服务器进行本地测试时curl
,它会立即给出响应。
我也尝试使用同样的事情nginx
,但事情仍然发生了......