Fix buffered proxy support.
Add TODO to improve buffered proxy mode.