von / PerProxy

A python-based proxy that uses Perspectives to detect and thwart SSL MITM attacks.
7 stars 2 forks source link

Current readall/sendall paradigm bad... #39

Open von opened 13 years ago

von commented 13 years ago

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