-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Write to transport \r\n before closing after keepalive timeout #1883 #1884
Conversation
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.
LGFM except few moments.
aiohttp/web_protocol.py
Outdated
@@ -268,6 +268,7 @@ def eof_received(self): | |||
pass | |||
|
|||
def data_received(self, data): | |||
print("data:", data) |
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.
aiohttp/web_protocol.py
Outdated
@@ -336,13 +337,15 @@ def close(self): | |||
if not waiter.done(): | |||
waiter.cancel() | |||
|
|||
def force_close(self): | |||
def force_close(self, keepalive=False): |
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 think the argment name a bit misleading. send_last_heartbeat
- might be more precisely about what will happen. The keepalive
fits more to class property which can be enabled or disabled.
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.
good catch, thanks
No description provided.