Skip to content

Distinguish between client and gateway timeouts#24

Merged
willyjfarrell merged 1 commit into
masterfrom
fix/timeout-status-codes
Dec 14, 2023
Merged

Distinguish between client and gateway timeouts#24
willyjfarrell merged 1 commit into
masterfrom
fix/timeout-status-codes

Conversation

@willyjfarrell

Copy link
Copy Markdown
Contributor

Returns a 499 on context.Canceled, rather than transforming it into a 504.

This logic directly aligns with transportd: https://github.com/asecurityteam/transportd/blob/6ee0c48d988a052a4fbb1aa77469e5a3f39070fb/pkg/errors.go#L32-L39

@willyjfarrell
willyjfarrell requested a review from a team as a code owner December 14, 2023 15:05
@codecov

codecov Bot commented Dec 14, 2023

Copy link
Copy Markdown

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (11f0832) 91.12% compared to head (767dd60) 90.69%.

Files Patch % Lines
middleware.go 0.00% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   91.12%   90.69%   -0.43%     
==========================================
  Files           4        4              
  Lines         428      430       +2     
==========================================
  Hits          390      390              
- Misses         31       32       +1     
- Partials        7        8       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@willyjfarrell
willyjfarrell merged commit f7b8efd into master Dec 14, 2023
@willyjfarrell
willyjfarrell deleted the fix/timeout-status-codes branch December 14, 2023 21:14
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.

3 participants