Марк Коренберг <socketp...@gmail.com> added the comment:
===== 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# ---------- Added file: http://bugs.python.org/file20916/qwe.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11259> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com