-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Example below is a snippet sending a big attachment via Gmail, the whole thing gets read into memory and then written. Rewrite so we write each buffer as it is read.
PerProxy: ...returned 8192 bytes
PerProxy: recv()...
PerProxy: ...returned 8191 bytes
PerProxy: recv()...
PerProxy: ...returned 8192 bytes
PerProxy: recv()...
PerProxy: ...returned 8192 bytes
PerProxy: recv()...
PerProxy: ...returned 1 bytes
PerProxy: recv()...
PerProxy: ...returned 4574 bytes
PerProxy: recv()...
PerProxy: ...returned None
PerProxy: Writing 6132190 bytes to server at mail.google.com:443