Mercurial > dovecot > core-2.2
changeset 18095:7ef360d3fb09
lib: connection: Now uses io_add_istream() instead of io_add().
author | Stephan Bosch <stephan@rename-it.nl> |
---|---|
date | Sat, 15 Nov 2014 02:36:22 +0200 |
parents | a350812e07bf |
children | 8eaaff8e2c63 |
files | src/lib/connection.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/connection.c Sat Nov 15 02:27:27 2014 +0200 +++ b/src/lib/connection.c Sat Nov 15 02:36:22 2014 +0200 @@ -124,7 +124,7 @@ o_stream_set_no_error_handling(conn->output, TRUE); o_stream_set_name(conn->output, conn->name); } - conn->io = io_add(conn->fd_in, IO_READ, *conn->list->v.input, conn); + conn->io = io_add_istream(conn->input, *conn->list->v.input, conn); if (set->input_idle_timeout_secs != 0) { conn->to = timeout_add(set->input_idle_timeout_secs*1000, connection_idle_timeout, conn); @@ -225,7 +225,7 @@ o_stream_set_no_error_handling(conn->output, TRUE); o_stream_set_name(conn->output, conn->name); - conn->io = io_add(conn->fd_in, IO_READ, *list->v.input, conn); + conn->io = io_add_istream(conn->input, *list->v.input, conn); DLLIST_PREPEND(&list->connections, conn); list->connections_count++;