]> 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 10:14:23 +0000 (13:14 +0300)
commit36aa1b351b8e9d02a93aa17e5de8a06ac5440084
treecb03428a85ad156efbd2610b02fd53db14f777d1
parentf2de2be0e3453cdfa1d9eebd4d4361720ab60aff
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