ralf schmitt zsobrpgmailcom tue apr 15 2008 1219 curt hagenlocher wrote mon apr 14 2008 229 pm ralf schmitt wrote sorry reply mailing list change wrong eg youre using buffer size 16 bytes try read 256 bytes call recv value 256 call recv 16 times value 16 however upper limit shown imap bug upper limit called buffer size someone specifies buffer size 16 bytes means read 16 bytes time dont know someone would want small buffer size presumably reasons dont agree buffer size means buffer buffer_size bytes memory mean read buffer_size bytes asked read bytes buffer size upper limit talking buffer size limit operating system ie operating system maximum return n bytes recv call doesnt make sense ask original problem imaplip asking 10mb data reallocing buffer would gone reason min problem theres standard library code passing zero socketmakefile gets turned bufsize 1 constructor actually agree bill janssen __init__ real problem lies think change read safer pass 4 buffer size dont expect system make 1024 calls recv want read 4096 bytes regards ralf thu 07 aug 2008 170717 0200 pythondev bad network performance