> > A better patch is probably the following which also increases the size
> > of the buffer to at least 64k:
> 
> Agreed.

One thing to be aware of.  That function is syncronous.  It will read
as much as it can get, then it will do an "atomic" write operation to
flush the buffer out the other way.

If you have substantially different speeds, this can be a substantial
'buffer bloat'.

Since it is handling a session in both directions... expect to see
some substantial jaggies.

Reply via email to