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

Write to transport \r\n before closing after keepalive timeout #1883 #1884

Closed
wants to merge 0 commits into from

Conversation

fafhrd91
Copy link
Member

No description provided.

@fafhrd91
Copy link
Member Author

@kxepal @asvetlov comments?

Copy link
Member

@kxepal kxepal left a 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.

@@ -268,6 +268,7 @@ def eof_received(self):
pass

def data_received(self, data):
print("data:", data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

print

@@ -336,13 +337,15 @@ def close(self):
if not waiter.done():
waiter.cancel()

def force_close(self):
def force_close(self, keepalive=False):
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, thanks

@fafhrd91 fafhrd91 closed this May 12, 2017
@asvetlov asvetlov deleted the fix-1883 branch May 14, 2017 11:15
@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants