Tags: bertold/req
Tags
fix: retry on GOAWAY errors when using cached HTTP/2 connections (#3) 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 Co-authored-by: lyndonxu <lyndonxu@yeah.net>