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 3.6.2 plus connection leak fix #1

Merged
merged 139 commits into from
Jun 25, 2020

Conversation

pfreixes
Copy link

Upgrades to the last stable version of Aiohttp - 3.6.2 tag - plus adds a hotfix which is pending to be reviewed [1] that fixes a bug with a race condition that might leak connections in the client connection pool under some circumstances.

Tests pass in local:

$ make test
============================================================================= 2458 passed, 16 skipped, 3 xfailed in 131.33s (0:02:11) =============================================================================

[1] aio-libs#4562

asvetlov and others added 30 commits January 13, 2019 17:49
(cherry picked from commit aa5cccb)

Co-authored-by: Miha Jenko <[email protected]>
…. (aio-libs#3734)

(cherry picked from commit 7846174)

Co-authored-by: Gustavo J. A. M. Carneiro <[email protected]>
…r mismatch _keepalive field with __slots__ (aio-libs#3727) (aio-libs#3731)

(cherry picked from commit bfb99eb)

Co-authored-by: Artem Yushkovskiy <[email protected]>
(cherry picked from commit ff1c9de)

Co-authored-by: Artem Yushkovskiy <[email protected]>
…atch _keepalive field with __slots__ (aio-libs#3727) (aio-libs#3729)

(cherry picked from commit bfb99eb)

Co-authored-by: Artem Yushkovskiy <[email protected]>
* Fix type hint for tracing Signal sequence content

The Signal is instantiated with a TraceConfig object but does not store
it in its mutable sequence. Fixed hinting to reflect what is expected to
be added as signal handler.
* 🐽 streams: change waiters return value to None

This is just a simplifaction. Actually, the value means nothing.

* 🐽 stream.readchunk() refactoring
(cherry picked from commit 36331ce)

Co-authored-by: Коренберг Марк <[email protected]>
)

(cherry picked from commit ab0e956)

Co-authored-by: Andrew Svetlov <[email protected]>
…on an empty MultipartWriter (aio-libs#3520) (aio-libs#3756)

(cherry picked from commit 0ad5d90)

Co-authored-by: Arthur Darcet <[email protected]>
(cherry picked from commit 263fb5d)

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
…equest's data argument (aio-libs#3755) (aio-libs#3786)

(cherry picked from commit 9876e29)

Co-authored-by: JustAnotherArchivist <[email protected]>
dependabot-preview bot and others added 20 commits September 28, 2019 20:11
…#4133)

Given that the `FrozenList` type hint is `Union[List[_T], Iterable[_T]]`
the Application middleware type should not restrict to `Sequence` and
support all `Iterable` types..
(cherry picked from commit 8475395)

Co-authored-by: Stefan T <[email protected]>
…io-libs#4143)

The sock_read timeout should apply *per read operation*, but currently applies
cumulatively across all reads. Reschedule the timeout each time data is
received and add tests to validate that the timeout doesn't interfere with
overall reading and correctly catches reads that take too long.


Co-authored-by: Martijn Pieters <[email protected]>
@pfreixes pfreixes requested review from vangheem and lferran June 22, 2020 08:27
@pfreixes
Copy link
Author

@vangheem and @lferran seem that new version does not break onna canonica [1], so if you agree the steps that would need to be done will be:

  1. Create a new version of the forked version of Aiohttp (I would need some help from @vangheem for uploading it to our pypi)
  2. Updraft the PR [1] https://github.com/atlasense/onna-canonical/pull/4218 and change the requirement for using the one that we published
  3. Nothing else

[1] https://jenkins.atlasense.com/blue/organizations/jenkins/platform%2Fonna-canonical/detail/bump-aiohttp-version/1/pipeline

@vangheem
Copy link

@pfreixes do we need to re-fork? I notice that we have a lot of conflicts.

@vangheem
Copy link

Also, do we need to keep forking at this point?

@vangheem
Copy link

https://github.com/aio-libs/aiohttp/pull/4562/files is the cherry-picked additional fix

@pfreixes
Copy link
Author

As we speak I will override the master branch with this

@pfreixes pfreixes merged commit 79a7e56 into master Jun 25, 2020
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.

9 participants