[PATCH] Using TCP_NODELAY unconditionally
Tobias Ringstrom
tori at ringstrom.mine.nu
Wed Jan 23 18:31:45 EST 2002
On Tue, 22 Jan 2002, Rick Jones wrote:
> > * Nagle should be turned off for X11 sessions.
> >
> > * Nagle could be either on or off for pure shell sessions. (taste)
> >
> > * Nagle can be off for sftp, since it is well behaved, and does not
> > generate unneccesary tinygrams. Probably true for all (future)
> > subsystems as well. The current problem we have with nagle and sftp
> > can either be solved by letting nagle merge our two tinygrams, or by
> > merging them in the ssh code. I'd prefer adding buffering to ssh to
> > merge them in the application. Marcus?
>
> "Conservative in what you send" would seem to suggest that assuming that
> future subsystems are well-behaved is not a given :)
If a future subsystems would misbehave, you would be able to see that by
the fact that it generates a lot of tinygrams. The most generic solution
would of course be to have the possibility to add a nodelay flag to the
subsystem line in the sshd config file.
> Also, what does an ASCII mode transfer sftp session look like? Is it
> still nice large sends, or is is a series of oneliners?
There is no ASCII mode as in normal FTP, and directory listings are
handled with opendir and readdir messages. The openssh server currently
sends readdir data for 100 files at a time which should avoid tinygrams.
/Tobias
More information about the openssh-unix-dev
mailing list