diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-10-10 15:38:30 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-10-10 15:38:30 -0600 |
commit | 9c0bf311f93218e8f899cd3c6102868be18a4d1c (patch) | |
tree | de74b8a08c09b26aad05f065e2ba61f857ae7284 /modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go | |
parent | 5300949e0def70411fde307afad4c15b6cc22dfd (diff) |
Miscellaneous cleanups / comments
Diffstat (limited to 'modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go b/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go index 9df6585..eaf1f86 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go @@ -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) |