V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
hheedat
V2EX  ›  Go 编程语言

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

  •  
  •   hheedat · 2018-07-20 19:20:38 +08:00 · 2653 次点击
    这是一个创建于 2100 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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 了一个这玩意儿,就输出到标准错误了?我的理解正确吗?还望赐教

    proxy

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   929 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:29 · PVG 04:29 · LAX 13:29 · JFK 16:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.