澄潭

Results 186 comments of 澄潭

可以看下日志里的 duration 字段,可以知道当前请求处理时间总共耗了多久

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? ![image](https://private-user-images.githubusercontent.com/19427008/298515987-6561faf2-c35e-498b-8083-d5185367b53d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDU5MTY4MTMsIm5iZiI6MTcwNTkxNjUxMywicGF0aCI6Ii8xOTQyNzAwOC8yOTg1MTU5ODctNjU2MWZhZjItYzM1ZS00OThiLTgwODMtZDUxODUzNjdiNTNkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAxMjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMTIyVDA5NDE1M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFiZGY5NzBmMDU5ZTQxODgyMGQxNzI3ZjJkYTBlNjY2YTE1YWJhODIxNmFhM2Q0MzZmNDJkNTk1MDZjZGRiZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vsZgpAxMR8Vp819YVwvff7tzv_PP4H_KFpNrX3JDgQU) 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.