svn commit: r242261 - head/sys/netinet
Andre Oppermann
andre at FreeBSD.org
Sun Oct 28 19:02:08 UTC 2012
Author: andre
Date: Sun Oct 28 19:02:07 2012
New Revision: 242261
URL: http://svn.freebsd.org/changeset/base/242261
Log:
For retransmits of SYN|ACK from the syncache use the slightly more
aggressive special tcp_syn_backoff[] retransmit schedule instead of
the normal tcp_backoff[] schedule for established connections.
MFC after: 2 weeks
Modified:
head/sys/netinet/tcp_syncache.c
head/sys/netinet/tcp_timer.h
Modified: head/sys/netinet/tcp_syncache.c
==============================================================================
--- head/sys/netinet/tcp_syncache.c Sun Oct 28 18:56:57 2012 (r242260)
+++ head/sys/netinet/tcp_syncache.c Sun Oct 28 19:02:07 2012 (r242261)
@@ -391,7 +391,7 @@ static void
syncache_timeout(struct syncache *sc, struct syncache_head *sch, int docallout)
{
sc->sc_rxttime = ticks +
- TCPTV_RTOBASE * (tcp_backoff[sc->sc_rxmits]);
+ TCPTV_RTOBASE * (tcp_syn_backoff[sc->sc_rxmits]);
sc->sc_rxmits++;
if (TSTMP_LT(sc->sc_rxttime, sch->sch_nextc)) {
sch->sch_nextc = sc->sc_rxttime;
Modified: head/sys/netinet/tcp_timer.h
==============================================================================
--- head/sys/netinet/tcp_timer.h Sun Oct 28 18:56:57 2012 (r242260)
+++ head/sys/netinet/tcp_timer.h Sun Oct 28 19:02:07 2012 (r242261)
@@ -170,6 +170,7 @@ extern int tcp_rexmit_slop;
extern int tcp_msl;
extern int tcp_ttl; /* time to live for TCP segs */
extern int tcp_backoff[];
+extern int tcp_syn_backoff[];
extern int tcp_finwait2_timeout;
extern int tcp_fast_finwait2_recycle;
More information about the svn-src-all
mailing list