Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Don't raise sniffing error when retrying request #1326

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

sethmlarson
Copy link
Contributor

@sethmlarson sethmlarson commented Jul 20, 2020

When an HTTP request fails and we decide to retry the request, mark_dead() can cause a sniff attempt to start if sniff_on_connection_fail=True. We don't want to interrupt a retry if a sniff request fails, instead we'd rather retry or raise the original exception that occurred.

Related: #1279

@sethmlarson sethmlarson force-pushed the fix-sniffing-fail-on-retry branch from 32b8279 to 6e0f7ad Compare July 20, 2020 14:33
@sethmlarson
Copy link
Contributor Author

Only failure is 3.7 on GHA for unrelated install reasons. Merging this.

@sethmlarson sethmlarson merged commit 8106c0e into master Jul 20, 2020
@sethmlarson sethmlarson deleted the fix-sniffing-fail-on-retry branch July 20, 2020 15:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant