xabcstack
V2EX  ›  Go 编程语言

net/http 这种异常有没有办法重试修复?

By xabcstack at 2023 年 11 月 18 日 · 1415 次点击

2023/11/18 19:40:43 http: proxy error: read tcp 172.18.0.4:35830->104.18.6.192:443: read: connection reset by peer

2023/11/18 13:09:35 httputil: ReverseProxy read error during body copy: unexpected EOF

2 条回复
NessajCN
   1
NessajCN  
   2023 年 11 月 19 日
if err == xxx {
retry()
}
mengzhuo
   2
mengzhuo  
   2023 年 11 月 19 日
这个明显是 proxy 有问题啊
The Go Programming Language
› http://golang.org/
› Go Playground
Go Projects
› Revel Web Framework
© 2026 V2EX · 26ms · 3.9.8.5