V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
httpbin - 协议调试工具
httpstatuses - 协议状态码查询
httpie - cURL-like tool for humans
Fiddler
vevlins
V2EX  ›  HTTP

golang http client 设置 transport 之后就会 connection refused?

  •  
  •   vevlins · 2019-10-16 11:30:26 +08:00 · 2757 次点击
    这是一个创建于 1647 天前的主题,其中的信息可能已经有所发展或是发生改变。

    不设置 transport 正常连接,单纯设置下 Dial 或者 MaxIdleConnsPerHost 等属性都会 connection refused。

    补充下具体场景:通过 get 请求访问

    http://m.360buyimg.com/mobilecms/jfs/t1/76500/24/1748/29483/5d01ea96E7376e8d9/bb72e8ba5102fc24.jpg 的前 5k 字节(range 指定)

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