]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Before starting imaps connections, check how full connection queue is.
authorTimo Sirainen <tss@iki.fi>
Wed, 8 Apr 2009 17:46:38 +0000 (13:46 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 8 Apr 2009 17:46:38 +0000 (13:46 -0400)
--HG--
branch : HEAD

src/login-common/main.c

index 4bb3d954dccae7a02ec5a3bc74983df4edf871bc..39667b8cf53743e395ee8e53bb96274bd1f652ae 100644 (file)
@@ -127,6 +127,8 @@ static void login_accept_ssl(void *context)
                local_port = 0;
        }
 
+       connection_queue_add(1);
+
        fd_ssl = ssl_proxy_new(fd, &remote_ip, &proxy);
        if (fd_ssl == -1)
                net_disconnect(fd);