Message184364
The error does not happen when running the same code under 2.7, despite the same default bufsize=0 subprocess behavior. This is likely due to differences in the Python 2.x old style io library when os.fdopen(fd, 'rb', bufsize) is used vs 3.x when io.open(fd, 'rb', bufsize) is used for Popen.stdout.
One workaround is to add a non-zero bufsize to the subprocess.Popen call in imaplib.IMAP4_stream.
I'm not sure if subprocess should be updated or if subprocess's docs on what it means for a pipe to be unbuffered (read(n) is a single syscall rather than a loop until n bytes or EOF) should be updated. |
|
Date |
User |
Action |
Args |
2013-03-17 05:37:15 | gregory.p.smith | set | recipients:
+ gregory.p.smith, r.david.murray |
2013-03-17 05:37:15 | gregory.p.smith | set | messageid: <1363498635.77.0.708235531157.issue17443@psf.upfronthosting.co.za> |
2013-03-17 05:37:15 | gregory.p.smith | link | issue17443 messages |
2013-03-17 05:37:15 | gregory.p.smith | create | |
|