Oswald Buddenhagen 6c08f568d0 fix socket_write() recursion
the synchronous writing to the socket would have typically invoked the
write callback, which would flush further commands, thus recursing.

we take the easy way out and make it fully asynchronous, i.e., no data
is sent before (re-)entering the event loop.

this also has the effect that socket_write() cannot fail any more, and
any errors will be reported asynchronously. this is consistent with
socket_read(), and produces cleaner code.

this introduces a marginal performance regression: the maildir driver is
synchronous, so all messages (which fit into memory) will be read before
any data is sent. this is not considered relevant.
2015-05-09 19:17:41 +02:00
..
2010-02-07 22:31:10 +01:00
2015-03-30 10:31:59 +02:00
2015-02-15 18:13:05 +01:00
2014-10-18 16:18:48 +02:00
2013-12-08 23:19:12 +01:00
2015-05-09 19:17:41 +02:00
2015-05-01 18:53:08 +02:00
2014-04-12 13:03:46 +02:00
2013-12-08 11:12:09 +01:00
2015-05-09 19:17:41 +02:00
2015-05-09 19:17:41 +02:00
2015-03-30 10:31:26 +02:00
2015-01-11 15:05:28 +01:00
2015-03-30 10:31:26 +02:00