Miscellaneous cleanups / comments

This commit is contained in:
Matthew Holt
2019-10-10 15:38:30 -06:00
parent 5300949e0d
commit 9c0bf311f9
8 changed files with 56 additions and 9 deletions

View File

@ -110,6 +110,7 @@ func (t Transport) RoundTrip(r *http.Request) (*http.Response, error) {
fcgiBackend, err := DialContext(ctx, network, address)
if err != nil {
// TODO: wrap in a special error type if the dial failed, so retries can happen if enabled
return nil, fmt.Errorf("dialing backend: %v", err)
}
// fcgiBackend gets closed when response body is closed (see clientCloser)