-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Allow keepalive_timeout to be None #933
Allow keepalive_timeout to be None #933
Conversation
There was a bug in the library in that we could not both: * set keepalive_timeout as None * set force_close to True Validation was wrong in that it expects `keepalive_timeout` to have to be one of `float` or `int`, but it should also allow `None` since `aiohttp` requires `keepalive_timeout` to be `None` if `force_close` is set to `True`. Closes aio-libs#932
@@ -1,5 +1,9 @@ | |||
Changes | |||
------- | |||
2.2.1 (2022-05-03) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to bump to today but I can change later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, forgot to update version in __init__.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall I leave it to you to fix @thehesiod or what do you need me to do? 😄 Thanks in advance.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll roll this into my current PR
ty! |
rolled into #935, thanks! |
There was a bug in the library in that we could not both:
keepalive_timeout
asNone
force_close
toTrue
Validation was wrong in that it expects
keepalive_timeout
to have to beone of
float
orint
, but it should also allowNone
sinceaiohttp
requires
keepalive_timeout
to beNone
ifforce_close
is set toTrue
.Closes #932
Description of Change
Started to allow
None
as value forkeepalive_timeout
. Added tests accordingly.Assumptions
aiohttp
requireskeepalive_timeout
to beNone
whenforce_close
isTrue
, so assumed validation inaiobotocore
needed to reflect that.Checklist for All Submissions
Closes #932