aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/dccp/output.c')
-rw-r--r--net/dccp/output.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/net/dccp/output.c b/net/dccp/output.c
index 7caa7f57bb7e..e97584aa4898 100644
--- a/net/dccp/output.c
+++ b/net/dccp/output.c
@@ -574,7 +574,18 @@ void dccp_send_close(struct sock *sk, const int active)
574 dccp_write_xmit(sk, 1); 574 dccp_write_xmit(sk, 1);
575 dccp_skb_entail(sk, skb); 575 dccp_skb_entail(sk, skb);
576 dccp_transmit_skb(sk, skb_clone(skb, prio)); 576 dccp_transmit_skb(sk, skb_clone(skb, prio));
577 /* FIXME do we need a retransmit timer here? */ 577 /*
578 * Retransmission timer for active-close: RFC 4340, 8.3 requires
579 * to retransmit the Close/CloseReq until the CLOSING/CLOSEREQ
580 * state can be left. The initial timeout is 2 RTTs.
581 * Since RTT measurement is done by the CCIDs, there is no easy
582 * way to get an RTT sample. The fallback RTT from RFC 4340, 3.4
583 * is too low (200ms); we use a high value to avoid unnecessary
584 * retransmissions when the link RTT is > 0.2 seconds.
585 * FIXME: Let main module sample RTTs and use that instead.
586 */
587 inet_csk_reset_xmit_timer(sk, ICSK_TIME_RETRANS,
588 DCCP_TIMEOUT_INIT, DCCP_RTO_MAX);
578 } else 589 } else
579 dccp_transmit_skb(sk, skb); 590 dccp_transmit_skb(sk, skb);
580} 591}