V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
hheedat

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

  •  
  •   hheedat · Jul 20, 2018 · 3045 views
    This topic created in 2840 days ago, the information mentioned may be changed or developed.
    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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1172 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:11 · PVG 02:11 · LAX 11:11 · JFK 14:11
    ♥ Do have faith in what you're doing.