[issue13354] tcpserver should document non-threaded long-living connections

2016-02-20 Thread Bas Wijnen
Bas Wijnen added the comment: Thank you for your fast response as well. I overlooked that paragraph indeed. It doesn't mention anything about avoiding a socket shutdown however. Keeping a list of requests isn't very useful if all the sockets in the list are closed. ;-) So I would indeed sug

[issue13354] tcpserver should document non-threaded long-living connections

2016-02-19 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue13354] tcpserver should document non-threaded long-living connections

2016-02-19 Thread Martin Panter
Martin Panter added the comment: Thanks for the fast response! There is a paragraph right at the end of that mentions this technique: “. . . maintain an explicit table of partially finished requests . . .”. Perhaps th

[issue13354] tcpserver should document non-threaded long-living connections

2016-02-19 Thread Bas Wijnen
Bas Wijnen added the comment: For example, I have some programs which are HTTP servers that implement WebSockets. For regular web page requests, it is acceptable if the connection is closed after the page is sent. But for a WebSocket it isn't: the whole point of that protocol is to allow the

[issue13354] tcpserver should document non-threaded long-living connections

2016-02-19 Thread Martin Panter
Martin Panter added the comment: Bas: I think you need to provide more information. Are you talking about protocols like HTTP, where multiple high-level (HTTP-level) requests are made over a single low-level (socket-level) connection? Some example code might help. Overriding shutdown_request()

[issue13354] tcpserver should document non-threaded long-living connections

2015-01-16 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue13354] tcpserver should document non-threaded long-living connections

2014-06-28 Thread Mark Lawrence
Mark Lawrence added the comment: Am I barking up the wrong tree, or should the docs now refer to the new asyncio module aka Tulip when mentioning "asynchronous behaviour"? -- nosy: +BreamoreBoy ___ Python tracker

[issue13354] tcpserver should document non-threaded long-living connections

2011-11-06 Thread Bas Wijnen
New submission from Bas Wijnen : http://docs.python.org/py3k/library/socketserver.html says: The solution is to create a separate process or thread to handle each request; the ForkingMixIn and ThreadingMixIn mix-in classes can be used to support asynchronous behaviour. There is another way, w