[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-09 Thread R. David Murray

R. David Murray  added the comment:

Well, it does support a persistent connection, but that connection lasts until 
it is shut down from the other side.  Documentation improvement suggestions are 
welcome.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-09 Thread R. David Murray

R. David Murray  added the comment:

In particular, if we don't already have an example of using the threading mixin 
we should, so a doc RFE to add that would be nice.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread 杨鹏

杨鹏  added the comment:

OK,i got it. thanks for your reply. But i have to say, the BaseHTTPServer 
document is kind of confusing. It claims to support persistent connection, but 
actually it hangs with such situation, i can't even shut it down with shudown() 
method. After diving into source code of SocketServer, i finally found the myth.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread Martin Panter

Change by Martin Panter :


--
superseder: HTTPServer can't deal with persistent connection properly -> 
http.server and SimpleHTTPServer hang after a few requests

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread R. David Murray

R. David Murray  added the comment:

Yes, I would say it is.

Note that this isn't going to get "fixed" in 2.7, because 2.7 doesn't get new 
features, and the proposed change to the CLI is a new feature.  As noted in 
that issue discussion we aren't going to change the inheritance hierarchy of 
the classes.  It is up to the library user to make that choice and implement it.

--
nosy: +r.david.murray
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> HTTPServer can't deal with persistent connection properly

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread Martin Panter

Martin Panter  added the comment:

Perhaps this can be treated as a duplicate of Issue 31639.

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32518] HTTPServer can't deal with persistent connection properly

2018-01-08 Thread 杨鹏

New submission from 杨鹏 :

when client is using persistent connection, HTTPServer will hang with that 
connection. As a result, it can't deal with other clients.

--
components: Library (Lib)
messages: 309659
nosy: 杨鹏
priority: normal
pull_requests: 4996
severity: normal
status: open
title: HTTPServer can't deal with persistent connection properly
type: behavior
versions: Python 2.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com