diff dbutil.c @ 936:d93a6bcf616f

Improve handling lots of concurrent forwarded connections. Increase connection backlog, avoid check_close() for channels that haven't had IO
author Matt Johnston <matt@ucc.asn.au>
date Wed, 25 Jun 2014 23:42:39 +0800
parents 8f04e36622c0
children ef8d939de3dd
line wrap: on
line diff
--- a/dbutil.c	Wed Jun 25 23:37:44 2014 +0800
+++ b/dbutil.c	Wed Jun 25 23:42:39 2014 +0800
@@ -332,7 +332,7 @@
 			continue;
 		}
 
-		if (listen(sock, 20) < 0) {
+		if (listen(sock, DROPBEAR_LISTEN_BACKLOG) < 0) {
 			err = errno;
 			close(sock);
 			TRACE(("listen() failed"))