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 xdegaye
Recipients martin.panter, xdegaye, zach.ware
Date 2016-12-14.21:12:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1481749934.8.0.541056489056.issue28971@psf.upfronthosting.co.za>
In-reply-to
Content
When the server sends a line longer than _MAXLINE, nntplib reads only _MAXLINE + 1 bytes leaving the remaining bytes left to be processed by the next command that will interpret those bytes as a protocol error. Hence the failing tests that follow the first NNTPDataError exception in the failing test_nntplib.

The patch increases _MAXLINE from 2048 to 4096 and fixes the above problem. It also takes care to read up to (and including) the terminator so that the following lines or the terminator is not interpreted as a protocol error by the next nntp command.

The patch does not include a test case.
History
Date User Action Args
2016-12-14 21:12:14xdegayesetrecipients: + xdegaye, martin.panter, zach.ware
2016-12-14 21:12:14xdegayesetmessageid: <1481749934.8.0.541056489056.issue28971@psf.upfronthosting.co.za>
2016-12-14 21:12:14xdegayelinkissue28971 messages
2016-12-14 21:12:14xdegayecreate