Date: Fri, 29 Sep 2000 17:23:30 -0700 (PDT) From: Matt Dillon <dillon@earth.backplane.com> To: freebsd-security@FreeBSD.ORG Subject: Proposed minor mod to openssh for interactive operation Message-ID: <200009300023.e8U0NUW20137@earth.backplane.com>
next in thread | raw e-mail | index | archive | help
At the moment openssh only turns on TCP_NODELAY etc if it thinks you are creating an interactive shell, based on whether it allocates a pty or not. Unfortunately, I have an application (and I expect this would be useful generally) which uses a ssh link between two programs interactively. That is, send command, wait response, send command, wait response. Delaying packets is a bad idea and cuts performance over the link by about 20%. I would like to propose predicating the TCP_NODELAY option on whether the ssh link is two-way or not. Since most batch commands use ssh -n (no stdin), and most interactive commands use ssh without -n (with stdin), I think having ssh set TCP_NODELAY based on -n is the correct solution. Specifically, if -n is not passed, NODELAY is turned on. I have trivial patches (two minor tests), any objections to my committing them? Also, I'm not sure whether we are trying to keep our openssh synced with openbsd's. Does anyone know the procedure for making changes to openssh in FreeBSD's CVS tree? -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009300023.e8U0NUW20137>