diff options
author | dillon <dillon@FreeBSD.org> | 2001-12-02 08:49:29 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2001-12-02 08:49:29 +0000 |
commit | f97547e246f3c4f9f272892fa757d7df8dc90b89 (patch) | |
tree | 1e2d69883173d0e4c094c85ef435f3c25dc41de5 /sys/netinet/tcp_syncache.c | |
parent | 0b6f0e4522eeceef1d5e5dc2e920666192f7ec2a (diff) | |
download | FreeBSD-src-f97547e246f3c4f9f272892fa757d7df8dc90b89.zip FreeBSD-src-f97547e246f3c4f9f272892fa757d7df8dc90b89.tar.gz |
Fix a bug with transmitter restart after receiving a 0 window. The
receiver was not sending an immediate ack with delayed acks turned on
when the input buffer is drained, preventing the transmitter from
restarting immediately.
Propogate the TCP_NODELAY option to accept()ed sockets. (Helps tbench and
is a good idea anyway).
Some cleanup. Identify additonal issues in comments.
MFC after: 1 day
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 3fbb0b8..e1dd788 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -657,7 +657,7 @@ syncache_socket(sc, lso) tp->rcv_wnd = sc->sc_wnd; tp->rcv_adv += tp->rcv_wnd; - tp->t_flags = sc->sc_tp->t_flags & TF_NOPUSH; + tp->t_flags = sc->sc_tp->t_flags & (TF_NOPUSH|TF_NODELAY); if (sc->sc_flags & SCF_NOOPT) tp->t_flags |= TF_NOOPT; if (sc->sc_flags & SCF_WINSCALE) { |