Re: [Python-Dev] Questionable TCP server example

2015-04-23 Thread Antoine Pitrou
On Thu, 23 Apr 2015 09:21:11 +0200 Andrea Griffini wrote: > It's not the first time someone is confused by the server example of > > https://docs.python.org/3/library/socketserver.html > > where the receiving side is not making a loop over recv. This is a trivial example indeed. If you think so

[Python-Dev] Questionable TCP server example

2015-04-23 Thread Andrea Griffini
It's not the first time someone is confused by the server example of https://docs.python.org/3/library/socketserver.html where the receiving side is not making a loop over recv. Moreover the documentation contains a misleading description of what really happens: "The difference is that the read