|
|
@ -223,6 +223,9 @@ func (c *Conn) RoundTrip(req *http.Request) (*http.Response, error) {
|
|
|
|
dp.Close()
|
|
|
|
dp.Close()
|
|
|
|
}()
|
|
|
|
}()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.request = req
|
|
|
|
|
|
|
|
|
|
|
|
select {
|
|
|
|
select {
|
|
|
|
case res := <-s.resch:
|
|
|
|
case res := <-s.resch:
|
|
|
|
/*
|
|
|
|
/*
|
|
|
@ -230,7 +233,6 @@ func (c *Conn) RoundTrip(req *http.Request) (*http.Response, error) {
|
|
|
|
return nil, fmt.Errorf("http error code %d", res.StatusCode)
|
|
|
|
return nil, fmt.Errorf("http error code %d", res.StatusCode)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
s.request = req
|
|
|
|
|
|
|
|
res.Request = s.request
|
|
|
|
res.Request = s.request
|
|
|
|
return res, nil
|
|
|
|
return res, nil
|
|
|
|
case <-c.ctx.Done():
|
|
|
|
case <-c.ctx.Done():
|
|
|
|