#Need help about reconnecting

4 messages · Page 1 of 1 (latest)

lucid token
#

Hello,
I'm sending requests to a server with http.Transport but after some time server sents GOAWAY frame and closes the connection. I want to reconnect and continue but I don't know which part of http.Transport handles reconnection.

req, err := http.NewRequest("GET", url, nil)
t := &http.Transport()
resp, err = t.RoundTrip(req)
timid geodeBOT
#
type Client struct {

A Client is an HTTP client. Its zero value (DefaultClient) is a usable client that uses DefaultTransport....

More documentation omitted

rich thistle
#

The client has a rountripper

lucid token
#

I assigned a new Transport but didn't work