]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib: istream-multiplex - Forward i_stream_switch_ioloop() to parent
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 9 Oct 2017 10:14:23 +0000 (13:14 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 9 Oct 2017 12:51:41 +0000 (15:51 +0300)
commit5010a20396194856685378dc4784f927820e0eed
tree914944635b54cde69bfe4a218002e3d86a24da7d
parent04e1ddbef26d4e78f1b2a900b799963023470ce4
lib: istream-multiplex - Forward i_stream_switch_ioloop() to parent

Most istreams do this because istream_private.parent is set to the parent
stream, but this can't be done with istream-multiplex. The main problem
with attempting to do the same with istream-multiplex is that the different
channels don't share the same I/O. Just because one channel received data
doesn't mean that other channels received any data. (It would be possible
to solve this by implementing a new method that allows overriding
i_stream_set_io(), but I'm not sure if that's a good idea either.)
src/lib/istream-multiplex.c