Skip to content

Commit acb4a6b

Browse files
Eric Dumazetdavem330
authored andcommitted
tcp: ensure prior synack rtx behavior with small backlogs
Some applications use a listen() backlog of 1. Prior kernels were silently enforcing a qlen_log of 4, so that we were sending up to /proc/sys/net/ipv4/tcp_synack_retries SYNACK messages. Fixes: ef547f2 ("tcp: remove max_qlen_log") Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 686a562 commit acb4a6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/inet_connection_sock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ static void reqsk_timer_handler(unsigned long data)
579579
* ones are about to clog our table.
580580
*/
581581
qlen = reqsk_queue_len(queue);
582-
if ((qlen << 1) > sk_listener->sk_max_ack_backlog) {
582+
if ((qlen << 1) > max(8U, sk_listener->sk_max_ack_backlog)) {
583583
int young = reqsk_queue_len_young(queue) << 1;
584584

585585
while (thresh > 2) {

0 commit comments

Comments
 (0)