• Clayton Coleman's avatar
    Reorganized Request.DoRaw() to guarantee streams are closed · 852ef7b6
    Clayton Coleman authored
    Added a test to verify 429 triggers a client retry based on
    header. Forced resp.Body.Close() to close after each request,
    which allows Golang to reuse the TCP connection to the server
    (should reduce connection establishment under retries).
    Possibly fixed a server leak of request bodies.
    852ef7b6
request_test.go 32.7 KB