问一个 Go http client 连接池的问题

2018-07-20 19:20:38 +08:00
 hheedat
Unsolicited response received on idle HTTP channel starting with "HTTP/1.0 408 Request Time-out\r\nCache-Control: no-cache\r\nConnection: close\r\nContent-Type: text/html\r\n\r\n<html><body><h1>408 Request Time-out</h1>\nYour browser didn't send a complete request in time.\n</body></html>\n"; err=<nil>

作为客户端向一个服务发请求,那个服务可能会超时,然后会有这个错误,我 google 了一些信息

https://github.com/docker/distribution/issues/1704
https://github.com/grafana/grafana/issues/10501

我理解的是连接池中的一个连接,在请求时候超时被 cannel 了,但是连接还在,然后服务器 response 了一个这玩意儿,就输出到标准错误了?我的理解正确吗?还望赐教

2656 次点击
所在节点    Go 编程语言
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/472761

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX