Skip to content

fix: retry on GOAWAY errors when using cached HTTP/2 connections#491

Open
0xuLiang wants to merge 1 commit intoimroc:masterfrom
0xuLiang:fix-goaway-retry
Open

fix: retry on GOAWAY errors when using cached HTTP/2 connections#491
0xuLiang wants to merge 1 commit intoimroc:masterfrom
0xuLiang:fix-goaway-retry

Conversation

@0xuLiang
Copy link
Copy Markdown

RoundTripOnlyCachedConn bypasses the retry loop in RoundTripOpt, so GOAWAY and other retryable errors were returned directly to callers.

Now we check CanRetryError before returning, allowing retryable errors to fall through and create a new connection.

Changes:

  • Export canRetryError as CanRetryError
  • Check CanRetryError in roundTrip when RoundTripOnlyCachedConn fails

Fixes #376

RoundTripOnlyCachedConn bypasses the retry loop in RoundTripOpt, so
GOAWAY and other retryable errors were returned directly to callers.

Now we check CanRetryError before returning, allowing retryable errors
to fall through and create a new connection.

Changes:
- Export canRetryError as CanRetryError
- Check CanRetryError in roundTrip when RoundTripOnlyCachedConn fails
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.

使用 HTTP/2 时经常触发错误

2 participants