Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifies makeBackendRequest #1556

Conversation

AlexanderYastrebov
Copy link
Member

  • Folds net.Error handling
  • Adds getRoundTripper method

Signed-off-by: Alexander Yastrebov [email protected]

* Folds net.Error handling
* Adds getRoundTripper method

Signed-off-by: Alexander Yastrebov <[email protected]>
if err != nil {
p.log.Errorf("Failed to roundtrip to fastcgi: %v", err)

return nil, &proxyError{err: err}

This comment was marked as duplicate.

@AlexanderYastrebov
Copy link
Member Author

AlexanderYastrebov commented Oct 19, 2020

Some points on extracting getRoundTripper are:

  • for fascgi previously it was a mix of roundtripper creation failure and roundtrip failure, now these are separated
  • for fastcgi roundtrip failure prevented common error and open tracing handling because of early return
  • previously there was no clear point before and after roundtrip where instrumentation could plug in, now it is clear as it was before fastcgi addition
  • this change makes a step towards custom rountrip timeouts More fine-grained timeout handling #1041

@AlexanderYastrebov
Copy link
Member Author

Will open a new one with better test coverage

@AlexanderYastrebov AlexanderYastrebov deleted the prettify-make-backend-request branch October 23, 2020 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant