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 magic numbers, this imaplib patch 
imports that constant and uses it on the Popen call. 

It doesn't seem to introduce test failures and still fixes the imap 
desynchronization problem seen at the porting clinic.

----------
Added file: http://bugs.python.org/file29473/imaplib-bufsize.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17443>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to