澄潭
澄潭
可以看下日志里的 duration 字段,可以知道当前请求处理时间总共耗了多久
执行下`hgctl gateway-config route` 我看看配置
https://github.com/envoyproxy/envoy/blob/v1.20.7/source/common/router/router.cc#L876-L886 这是envoy的逻辑,route里的timeout和每次重试的per try timeout是独立的timer,理论上配置了route的timeout,超过这个时间请求就结束了,不会再重试,如果还会重试可能是bug,我后面有空复现看下
@ray1888 The Higress log field response_code is 200, indicating that the response is returned by the upstream service. The error is net::ERR_CONTENT_LENGTH_MISMATCH. It may be that your upstream service did...
Did you use nginx as the upstream ? cc https://github.com/xhlwill/blog/issues/17#issuecomment-848631589
> throught Higress CURL Request: curl 'http://log.gitee.work/assets/login/js/chunk-vendors.705a060b.js' -H 'Accept: _/_' -H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' -H 'Cache-Control: no-cache' -H 'Connection: keep-alive' -H 'Pragma: no-cache' -H 'Referer: http://log.gitee.work/login' -H 'User-Agent: Mozilla/5.0 (Windows NT...
@ray1888 Please run the tcpdump in higress-gateway's pod (maybe you should run this command on the node, or switch the pod user to root): `tcpdump -i any host 10.244.18.92 and...
> @johnlanni can this screenshot ok? or need i post with pcap file?  Did you use curl try the headers of the output? From the output of tcpdump, you...
@ray1888 As you can see from the tcpdump output above, nginx did not return the response body. I think we need to find out the reason first.
@ray1888 The response code is 200, and if it times out, the response code is 504.