Florent Xicluna <la...@yahoo.fr> added the comment:

IMHO this code will do the trick:

while not request_buffer.endswith(('\r', '\n')):
    request_buffer += self.conn.recv(1024)
    print("Got a line!")

print("Got an empty line!")
self.handleRequest(request_buffer)

----------
nosy: +flox

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7638>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to