isync/src
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
..
compat Make Berkley DB an optional dependency. 2015-04-13 09:19:02 +02:00
.gitignore cvsignore => gitignore 2010-02-07 22:31:10 +01:00
common.h add debugging for main() 2015-03-30 10:31:59 +02:00
config.c soft-limit peak memory usage 2015-02-15 18:13:05 +01:00
config.h re-design SSL/TLS configuration 2014-10-18 16:18:48 +02:00
driver.c reshuffle sources a bit 2013-12-08 23:19:12 +01:00
driver.h make skipping of failed stores more thorough 2015-04-26 20:58:43 +02:00
drv_imap.c fix socket_write() recursion 2015-05-09 19:17:41 +02:00
drv_maildir.c make skipping of failed stores more thorough 2015-04-26 20:58:43 +02:00
main.c make skipping of failed stores more thorough 2015-04-26 20:58:43 +02:00
Makefile.am Make Berkley DB an optional dependency. 2015-04-13 09:19:02 +02:00
mbsync.1 use \fB and \fI consistently, take 2 2015-05-01 18:53:08 +02:00
mbsyncrc.sample escape backslashes in PassCmd examples 2015-03-22 11:44:33 +01:00
mdconvert.1 replace FSF address with something more ... contemporary 2012-09-01 21:15:53 +02:00
mdconvert.c fix hypothetical buffer overflows 2014-04-12 13:03:46 +02:00
run-tests.pl reduce FSync option to a boolean 2013-12-08 11:12:09 +01:00
socket.c fix socket_write() recursion 2015-05-09 19:17:41 +02:00
socket.h fix socket_write() recursion 2015-05-09 19:17:41 +02:00
sync.c revamp console output options 2015-03-30 10:31:26 +02:00
sync.h add support for propagating folder deletions 2015-01-17 17:51:20 +01:00
tst_timers.c add timers to mainloop 2015-01-11 15:05:28 +01:00
util.c revamp console output options 2015-03-30 10:31:26 +02:00