在请求传输过程中修改golang Http传输安全吗?

在请求传输过程中修改golang Http传输安全吗?,http,go,Http,Go,我有一个应用程序,它根据每个请求通过代理进行轮换 目前我有一些代码是: func (mon *Monitor) MassUrlRetrieve(n int, url string) (respBytes []byte) { funnel := make(chan []byte) go ProductRetrieveTimeout(TIMEOUT_RETRIEVE_URL, funnel) for i := 0; i < n; i++ { go mon

我有一个应用程序,它根据每个请求通过代理进行轮换

目前我有一些代码是:

func (mon *Monitor) MassUrlRetrieve(n int, url string) (respBytes []byte) {
    funnel := make(chan []byte)
    go ProductRetrieveTimeout(TIMEOUT_RETRIEVE_URL, funnel)
    for i := 0; i < n; i++ {
        go mon.WrapGetUrlToChannel(funnel, url)
    }
    return <- funnel
}
func(mon*Monitor)MassUrlRetrieve(n int,url字符串)(respBytes[]byte){
漏斗:=make(chan[]字节)
go ProductRetrieveTimeout(超时\u检索\u URL,漏斗)
对于i:=0;ireturn使用race检测器,它明确表明我不应该修改传输。最后,我决定旋转*http.transport,而不是代理,并在发出并发请求时使用唯一的客户端


多亏了@Flimzy

最可靠的方法是在种族检测器打开的情况下运行一些测试。但凭直觉,这听起来很危险(你可能同意,因为你问了这个问题)。谢谢,我不知道这是我的一个选择。