This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author flox
Recipients flox, r.david.murray, vencabot_teppoo
Date 2010-01-05.07:33:59
SpamBayes Score 0.010817058
Marked as misclassified No
Message-id <1262676840.96.0.766563460791.issue7638@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-01-05 07:34:01floxsetrecipients: + flox, r.david.murray, vencabot_teppoo
2010-01-05 07:34:00floxsetmessageid: <1262676840.96.0.766563460791.issue7638@psf.upfronthosting.co.za>
2010-01-05 07:33:59floxlinkissue7638 messages
2010-01-05 07:33:59floxcreate