svn commit: r294173 - stable/10/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Sat Jan 16 17:53:06 UTC 2016
Author: tuexen
Date: Sat Jan 16 17:53:04 2016
New Revision: 294173
URL: https://svnweb.freebsd.org/changeset/base/294173
Log:
MFC r289240:
Fix the timeout for INIT retransmissions in the case where RTO_MIN is
smaller than RTO_INITIAL.
Modified:
stable/10/sys/netinet/sctp_timer.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/netinet/sctp_timer.c
==============================================================================
--- stable/10/sys/netinet/sctp_timer.c Sat Jan 16 17:50:43 2016 (r294172)
+++ stable/10/sys/netinet/sctp_timer.c Sat Jan 16 17:53:04 2016 (r294173)
@@ -408,7 +408,11 @@ sctp_backoff_on_timeout(struct sctp_tcb
int num_marked, int num_abandoned)
{
if (net->RTO == 0) {
- net->RTO = stcb->asoc.minrto;
+ if (net->RTO_measured) {
+ net->RTO = stcb->asoc.minrto;
+ } else {
+ net->RTO = stcb->asoc.initial_rto;
+ }
}
net->RTO <<= 1;
if (net->RTO > stcb->asoc.maxrto) {
More information about the svn-src-stable-10
mailing list