Skip to content

[9.x] Http client: fix retry handling of connection exception - #41811

Merged
taylorotwell merged 1 commit into
laravel:9.xfrom
gdebrauwer:http-client-exception-handling-improvement
Apr 3, 2022
Merged

[9.x] Http client: fix retry handling of connection exception#41811
taylorotwell merged 1 commit into
laravel:9.xfrom
gdebrauwer:http-client-exception-handling-improvement

Conversation

@gdebrauwer

Copy link
Copy Markdown
Contributor

Extra follow-up fix to #41792 and #41762.

Without this fix, the retryWhenCallback closure is never executed if a ConnectionException occurs. This PR fixes that. I was not able to add a test for this as you can not fake a ConnectionException.

@taylorotwell
taylorotwell merged commit bb071a9 into laravel:9.x Apr 3, 2022
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.

2 participants