Author socketpair
Recipients Arfrever, giampaolo.rodola, socketpair
Date 2011-02-26.15:14:20
SpamBayes Score 1.40842e-06
Marked as misclassified No
Message-id <1298733261.01.0.864041716258.issue11259@psf.upfronthosting.co.za>
In-reply-to
Content
===== ORIGINAL ===========
$ ./qwe.py 10
read length: 10
read data: "xxxxxxxxxx"
should read "test". read: "test"

$ ./qwe.py -10
read length: -10
read data: "xxxxxx"
should read "test". read: "xxxxtest"

===== PATCHED ===========
$ ./qwe.py 10
read length: 10
read data: "xxxxxxxxxx"
should read "test". read: "test"

$ ./qwe.py -10
read length: -10
error: uncaptured python exception, closing channel <__main__.http_request_handler connected '' at 0x7fe69b9bf878> (<type 'exceptions.ValueError'>:Negative terminator value is not allowed [/usr/lib/python2.6/asyncore.py|read|78] [/usr/lib/python2.6/asyncore.py|handle_read_event|428] [/tmp/qwe/asynchat.py|handle_read|160] [./qwe.py|found_terminator|19] [/tmp/qwe/asynchat.py|set_terminator|98])
root@fad:/tmp/qwe#
History
Date User Action Args
2011-02-26 15:14:21socketpairsetrecipients: + socketpair, giampaolo.rodola, Arfrever
2011-02-26 15:14:21socketpairsetmessageid: <1298733261.01.0.864041716258.issue11259@psf.upfronthosting.co.za>
2011-02-26 15:14:20socketpairlinkissue11259 messages
2011-02-26 15:14:20socketpaircreate