[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-18 Thread Diane Trout
Diane Trout added the comment: After bumping into r.david.murray in the elevator I got the impression setting the bufsize argument to the Popen call would be a better idea. I found that BufferedReader/Writer were using a DEFAULT_BUFFER_SIZE set somewhere in the c part of io. To cut down on

[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-17 Thread Diane Trout
Diane Trout added the comment: So as a first stab at fixing this. I modified imaplib to wrap the process.stdin / process.stdout from with io.BufferedWriter / io.BufferedReader. I didn't use the TextIOWrapper as the imaplib wanted to work with the raw \r\n. The change seems to have fixe

[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-16 Thread Diane Trout
Changes by Diane Trout : -- nosy: +detrout ___ Python tracker <http://bugs.python.org/issue17443> ___ ___ Python-bugs-list mailing list Unsubscribe: