From 48522088d99f41c8353e580b15246371617e6f8c Mon Sep 17 00:00:00 2001 From: Rafael Zalamena Date: Fri, 20 Oct 2017 19:29:07 -0200 Subject: [PATCH] bgpd: bump listen() backlog 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 --- bgpd/bgp_network.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index 70299ea456..101e0e62bb 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -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; -- 2.39.5