dovecot-2.2: dns: Don't idle-disconnect clients
dovecot at dovecot.org
dovecot at dovecot.org
Fri Nov 22 23:31:54 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/fd071679352a
changeset: 17007:fd071679352a
user: Timo Sirainen <tss at iki.fi>
date: Fri Nov 22 23:31:36 2013 +0200
description:
dns: Don't idle-disconnect clients
It's the job for the clients.
diffstat:
src/dns/dns-client.c | 10 ----------
1 files changed, 0 insertions(+), 10 deletions(-)
diffs (46 lines):
diff -r 75b6c3b8ee20 -r fd071679352a src/dns/dns-client.c
--- a/src/dns/dns-client.c Fri Nov 22 23:15:07 2013 +0200
+++ b/src/dns/dns-client.c Fri Nov 22 23:31:36 2013 +0200
@@ -14,7 +14,6 @@
struct istream *input;
struct ostream *output;
struct io *io;
- struct timeout *to;
};
#define MAX_INBUF_SIZE 1024
@@ -83,17 +82,11 @@
}
}
o_stream_uncork(client->output);
- timeout_reset(client->to);
if (client->input->eof || client->input->stream_errno != 0 || ret < 0)
dns_client_destroy(&client);
}
-static void dns_client_timeout(struct dns_client *client)
-{
- dns_client_destroy(&client);
-}
-
static struct dns_client *dns_client_create(int fd)
{
struct dns_client *client;
@@ -104,8 +97,6 @@
client->output = o_stream_create_fd(fd, MAX_OUTBUF_SIZE, FALSE);
o_stream_set_no_error_handling(client->output, TRUE);
client->io = io_add(fd, IO_READ, dns_client_input, client);
- client->to = timeout_add(INPUT_TIMEOUT_MSECS, dns_client_timeout,
- client);
return client;
}
@@ -115,7 +106,6 @@
*_client = NULL;
- timeout_remove(&client->to);
io_remove(&client->io);
i_stream_destroy(&client->input);
o_stream_destroy(&client->output);
More information about the dovecot-cvs
mailing list