使用 http 包碰到的 error

  • 创建 context deadline exceeded (Client.Timeout exceeded while awaiting headers)

  • 创建 EOF

  • 创建 read: connection reset by peer

  • 读 body (Client.Timeout or context cancellation while reading body)

  • 读 body EOF

  • 读 body read: connection reset by peer

  • 读 body (Client.Timeout or context cancellation while reading body)

我是不是写的代码有问题呀, 为什么要处理这么多?