]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: bump listen() backlog 1349/head
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 20 Oct 2017 21:29:07 +0000 (19:29 -0200)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Fri, 20 Oct 2017 21:29:07 +0000 (19:29 -0200)
Handle better stress situations when multiple peers are trying to
connect at the same time by bumping the TCP connection backlog limit.

This reduces the convergence time of BGPerf stress test.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
bgpd/bgp_network.c

index 70299ea456f4017d426b3bee400fa901d6422924..101e0e62bbddf73dfae7fc0d1e94f846248d8c40 100644 (file)
@@ -675,7 +675,7 @@ static int bgp_listener(int sock, struct sockaddr *sa, socklen_t salen)
                return ret;
        }
 
-       ret = listen(sock, 3);
+       ret = listen(sock, SOMAXCONN);
        if (ret < 0) {
                zlog_err("listen: %s", safe_strerror(errno));
                return ret;