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 kristjan.jonsson
Recipients kristjan.jonsson, orsenthil, pitrou, r.david.murray, serhiy.storchaka
Date 2013-09-20.13:58:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1379685522.93.0.738369589167.issue19009@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, I have refactored this a bit.
A separate new function now takes care of the reading of chunk-header and tail.  This simplifies the other functions.

I'm not sure what you mean by inheriting from the buffered class.  Do we gain anything by doing that, would it change the code? or would it merely be for the benefit of ABC?

Note that the chunk protocol was wrong and I fixed the unittests:  The final chunk is a _valid_ zero length chunk, i.e. 0\r\n\r\n.  It contains two eol tokens like other chunks, one at the end of the length, the other at the end of the(null) payload.
History
Date User Action Args
2013-09-20 13:58:42kristjan.jonssonsetrecipients: + kristjan.jonsson, orsenthil, pitrou, r.david.murray, serhiy.storchaka
2013-09-20 13:58:42kristjan.jonssonsetmessageid: <1379685522.93.0.738369589167.issue19009@psf.upfronthosting.co.za>
2013-09-20 13:58:42kristjan.jonssonlinkissue19009 messages
2013-09-20 13:58:41kristjan.jonssoncreate