aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_fastopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_fastopen.c')
-rw-r--r--net/ipv4/tcp_fastopen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_fastopen.c b/net/ipv4/tcp_fastopen.c
index f69f436fcbcc..410ac481fda0 100644
--- a/net/ipv4/tcp_fastopen.c
+++ b/net/ipv4/tcp_fastopen.c
@@ -161,13 +161,13 @@ static struct sock *tcp_fastopen_create_child(struct sock *sk,
161 tp->snd_wnd = ntohs(tcp_hdr(skb)->window); 161 tp->snd_wnd = ntohs(tcp_hdr(skb)->window);
162 162
163 /* Activate the retrans timer so that SYNACK can be retransmitted. 163 /* Activate the retrans timer so that SYNACK can be retransmitted.
164 * The request socket is not added to the SYN table of the parent 164 * The request socket is not added to the ehash
165 * because it's been added to the accept queue directly. 165 * because it's been added to the accept queue directly.
166 */ 166 */
167 inet_csk_reset_xmit_timer(child, ICSK_TIME_RETRANS, 167 inet_csk_reset_xmit_timer(child, ICSK_TIME_RETRANS,
168 TCP_TIMEOUT_INIT, TCP_RTO_MAX); 168 TCP_TIMEOUT_INIT, TCP_RTO_MAX);
169 169
170 atomic_set(&req->rsk_refcnt, 1); 170 atomic_set(&req->rsk_refcnt, 2);
171 /* Add the child socket directly into the accept queue */ 171 /* Add the child socket directly into the accept queue */
172 inet_csk_reqsk_queue_add(sk, req, child); 172 inet_csk_reqsk_queue_add(sk, req, child);
173 173