Mercurial > dovecot > core-2.2
changeset 8593:3cccf56e802a HEAD
Increase listen queues to handle high loads better.
Patch by Apple.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Jan 2009 13:34:25 -0500 |
parents | 8299d17219fa |
children | f05c50f43793 |
files | src/auth/main.c src/dict/dict-server.c src/master/auth-process.c src/master/dict-process.c src/master/listener.c |
diffstat | 5 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/main.c Tue Jan 06 12:04:09 2009 -0500 +++ b/src/auth/main.c Wed Jan 07 13:34:25 2009 -0500 @@ -153,9 +153,9 @@ break; str = t_strdup_printf("AUTH_%u", i); - client_fd = create_unix_listener(str, 64); + client_fd = create_unix_listener(str, 128); str = t_strdup_printf("AUTH_%u_MASTER", i); - master_fd = create_unix_listener(str, 64); + master_fd = create_unix_listener(str, 128); listener = auth_master_listener_create(auth); if (master_fd != -1) {
--- a/src/dict/dict-server.c Tue Jan 06 12:04:09 2009 -0500 +++ b/src/dict/dict-server.c Wed Jan 07 13:34:25 2009 -0500 @@ -525,7 +525,7 @@ server = i_new(struct dict_server, 1); server->path = i_strdup(path); server->fd = fd != -1 ? fd : - net_listen_unix_unlink_stale(path, 64); + net_listen_unix_unlink_stale(path, 128); if (server->fd == -1) { if (errno == EADDRINUSE) i_fatal("Socket already exists: %s", path);
--- a/src/master/auth-process.c Tue Jan 06 12:04:09 2009 -0500 +++ b/src/master/auth-process.c Wed Jan 07 13:34:25 2009 -0500 @@ -327,7 +327,7 @@ dec2str(pid)); p->worker_listen_fd = unix_socket_create(path, 0600, group->set->uid, - group->set->gid, 16); + group->set->gid, 128); if (p->worker_listen_fd == -1) i_fatal("Couldn't create auth worker listener"); @@ -712,7 +712,7 @@ path = t_strconcat(auth_set->parent->defaults->login_dir, "/", auth_set->name, NULL); group->listen_fd = unix_socket_create(path, 0660, master_uid, - auth_set->parent->login_gid, 16); + auth_set->parent->login_gid, 128); if (group->listen_fd == -1) i_fatal("Couldn't create auth process listener");
--- a/src/master/dict-process.c Tue Jan 06 12:04:09 2009 -0500 +++ b/src/master/dict-process.c Wed Jan 07 13:34:25 2009 -0500 @@ -116,7 +116,7 @@ mode_t old_umask; old_umask = umask(0); - process->fd = net_listen_unix_unlink_stale(process->path, 64); + process->fd = net_listen_unix_unlink_stale(process->path, 128); umask(old_umask); if (process->fd == -1) { if (errno == EADDRINUSE)
--- a/src/master/listener.c Tue Jan 06 12:04:09 2009 -0500 +++ b/src/master/listener.c Wed Jan 07 13:34:25 2009 -0500 @@ -282,8 +282,8 @@ continue; for (j = 0; j < 10; j++) { - listens[i].fd = - net_listen(&listens[i].ip, &listens[i].port, 8); + listens[i].fd = net_listen(&listens[i].ip, + &listens[i].port, 128); if (listens[i].fd != -1) break;