On Wed, 17 Apr 2002, Mikael Olsson wrote:
:You may be interested in a little patch I wrote for the OpenSSH
:daemon that turns nagle OFF on the server->forwarded port
:TCP connection. It improves responsiveness something fierce,
:at least in the environments where I've been using it.
:(I _think_ X11 forwarding uses the same function call, but don't
: take my word for it.)
:
:However, one would probably also need to do the same to the
:X server -> SSH client connection, for the SSH client side
:socket. I haven't done that though. [1]
:
:channels.c, line ~2340 (in 3.0.2), function connect_to():
:
: if (fcntl(sock, F_SETFL, O_NONBLOCK) < 0)
: fatal("connect_to: F_SETFL: %s", strerror(errno));
:/* BEGIN TCP_NODELAY HACK [EMAIL PROTECTED], 20020113 */
: if(1) {
: int on=1;
: if (setsockopt(sock, IPPROTO_TCP, TCP_NODELAY, (void *) &on,
:sizeof(on)) < 0)
: error("setsockopt TCP_NODELAY: %.100s", strerror(errno));
: }
:/* END TCP_NODELAY HACK [EMAIL PROTECTED], 20020113 */
: if (connect(sock, ai->ai_addr, ai->ai_addrlen) < 0 &&
In OpenSSH 3.1 we now do:
disable nagle for X11 forwarding proxy server
disable nagle for X11 forwarding client endpoint (x11_connect_display())
disable nagle for TCP forward listener
disable nagle for TCP forward client endpoint (connect_to())
_______________________________________________
Firewalls mailing list
[EMAIL PROTECTED]
http://lists.gnac.net/mailman/listinfo/firewalls