[paramiko] [MERGE] Add bufsize to SSHClient.exec_command
Robey Pointer
robey at lag.net
Sun Dec 30 16:36:33 PST 2007
On 6 Dec 2007, at 11:55, Dwayne Litzenberger wrote:
> This patch adds a "bufsize" argument to SSHClient.exec_command.
>
> Note that, from what I can tell (I haven't delved into the workings of
> BufferedFile too much), BufferedFile._set_mode currently behaves
> identically
> when given bufsize=0 (unbuffered) and bufsize=-1 (system default).
> The
> result is that chan.makefile('wb') returns a ChannelFile instance
> with _no_
> buffering, contrary to what one might expect.
Thanks, merged!
I've found that over a socket, having writes buffered by default is a
good way to cause confusion and despair, since most people assume that
when they call write() it will immediately go out. :)
robey
More information about the paramiko
mailing list