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

support keep-alive for http 1.0 #323

Closed
wants to merge 0 commits into from
Closed

Conversation

eleddy
Copy link
Contributor

@eleddy eleddy commented Apr 14, 2015

keep alive is on by default for http 1.1 and off
by default for http 1.0. parse connection headers
for 1.0 and obey

@asvetlov
Copy link
Member

HTTP protocols less than 1.0 (read 0.9) don't support keep alives at all, only 1.0 does.

@fafhrd91
Copy link
Member

i do not think 0.9 is the problem at all :)

@@ -555,7 +550,13 @@ def enable_chunked_encoding(self):

def keep_alive(self):
if self.keepalive is None:
return not self.closing
if self.version <= HttpVersion10:
if self.headers.get('Connection') == 'keep-alive':
Copy link
Member

Choose a reason for hiding this comment

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

please use hdrs.CONNECTION

@asvetlov
Copy link
Member

Sure, 0.9 is very rare now but disabling keepalive for protocol versions <
1.0 is very trivial. Why don't support that?

On Tue, Apr 14, 2015 at 10:49 AM, Nikolay Kim notifications@github.com
wrote:

i do not think 0.9 is the problem at all :)


Reply to this email directly or view it on GitHub
#323 (comment).

Thanks,
Andrew Svetlov

@eleddy
Copy link
Contributor Author

eleddy commented Apr 14, 2015

sorry, reopened as #325 since I was pulling from the wrong branch

@lock
Copy link

lock bot commented Oct 30, 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 30, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 30, 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.

3 participants