Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Aiohttp fixed bug with HEAD requests and connection reuse #55

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

sethmlarson
Copy link
Contributor

@sethmlarson sethmlarson commented Dec 6, 2021

Since 3.7.0 (October 2020) the bug in aiohttp has been fixed where HEAD requests don't mark the connection as not reusable.

@sethmlarson sethmlarson merged commit 1a55ce7 into main Dec 6, 2021
@sethmlarson sethmlarson deleted the aiohttp-head-bug branch December 6, 2021 17:08
pquentin added a commit to pquentin/elasticsearch-py that referenced this pull request Nov 4, 2022
This backports the following pull requests to the 7.17 branch to make it
easier for Rally to upgrade to elasticsearch-py 8.x:

 * elastic/elastic-transport-python#55
 * elastic/elastic-transport-python#58
pquentin added a commit to pquentin/elasticsearch-py that referenced this pull request Nov 4, 2022
In older versions of aiohttp, HEAD requests don't mark the connection as
not reusable, which is why GET was used instead. But this means
`indices.exists` becomes `indices.get` which can be prohibitively slow
on indices with large mappings, so we want to use `HEAD` for aiohttp
versions that don't have this bug.

This backports the following pull requests to the 7.17 branch to make it
easier for Rally to upgrade to elasticsearch-py 8.x:

 * elastic/elastic-transport-python#55
 * elastic/elastic-transport-python#58
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.

1 participant