Commit 43a4efb
committed
fix: retry on GOAWAY errors when using cached HTTP/2 connections
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 fails1 parent 247aa96 commit 43a4efb
2 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
558 | 558 | | |
559 | 559 | | |
560 | 560 | | |
561 | | - | |
| 561 | + | |
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
944 | 944 | | |
945 | 945 | | |
946 | 946 | | |
947 | | - | |
| 947 | + | |
948 | 948 | | |
949 | 949 | | |
950 | 950 | | |
| |||
0 commit comments