]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agolib: i_stream_read_next_line() now sets a better error message if line is too long.
Timo Sirainen [Tue, 14 Oct 2014 16:22:40 +0000 (09:22 -0700)] 
lib: i_stream_read_next_line() now sets a better error message if line is too long.

11 years agoauth: Fix to earlier commit: Don't try to resume already finished user iteration.
Timo Sirainen [Mon, 13 Oct 2014 16:13:53 +0000 (09:13 -0700)] 
auth: Fix to earlier commit: Don't try to resume already finished user iteration.

11 years agolib-index: Automatically grow header size on header updates.
Timo Sirainen [Mon, 13 Oct 2014 15:50:44 +0000 (08:50 -0700)] 
lib-index: Automatically grow header size on header updates.
This fixes assert-crashes when it didn't happen.

For example an old Maildir index could have had a header size 24. Dovecot
crashed then when trying to update it, because the new header size is 36 and
there wasn't an explicit mail_index_ext_resize_hdr() call.

11 years agoCompile fix for systems without dlopen()
Timo Sirainen [Mon, 13 Oct 2014 13:55:15 +0000 (06:55 -0700)] 
Compile fix for systems without dlopen()

11 years agolib-http: client: Moved delayed failed requests from host to client object.
Stephan Bosch [Sun, 12 Oct 2014 15:58:40 +0000 (08:58 -0700)] 
lib-http: client: Moved delayed failed requests from host to client object.

11 years agolib-http: client: With the recent addition of a connection attempt limit, connection...
Stephan Bosch [Sun, 12 Oct 2014 15:58:40 +0000 (08:58 -0700)] 
lib-http: client: With the recent addition of a connection attempt limit, connection failures weren't always handled correctly.

11 years agolib-http: client: Fixed segfault caused by earlier change.
Stephan Bosch [Sun, 12 Oct 2014 15:58:40 +0000 (08:58 -0700)] 
lib-http: client: Fixed segfault caused by earlier change.

11 years agoauth: Make sure userdb iteration is destroyed if worker connection disconnects.
Timo Sirainen [Fri, 10 Oct 2014 21:02:00 +0000 (00:02 +0300)] 
auth: Make sure userdb iteration is destroyed if worker connection disconnects.

11 years agoauth: Userdb iteration optimization.
Timo Sirainen [Fri, 10 Oct 2014 21:01:09 +0000 (00:01 +0300)] 
auth: Userdb iteration optimization.
Don't keep re-creating the timeout after iterating each user.

11 years agolib-dns: The dns_lookup() call caused a crash upon a connect error, because dns_clien...
Stephan Bosch [Fri, 10 Oct 2014 21:43:38 +0000 (00:43 +0300)] 
lib-dns: The dns_lookup() call caused a crash upon a connect error, because dns_client_disconnect() can indirectly call itself recursively.
Solved by dropping the list of lookups from the client object before the
lookups are destroyed.

11 years agoauth: If userdb iteration client disconnects early, make sure we don't get stuck.
Timo Sirainen [Fri, 10 Oct 2014 20:59:52 +0000 (23:59 +0300)] 
auth: If userdb iteration client disconnects early, make sure we don't get stuck.

11 years agomaildir: Don't limit uidlist line lengths to 4096 bytes.
Timo Sirainen [Fri, 10 Oct 2014 15:11:58 +0000 (18:11 +0300)] 
maildir: Don't limit uidlist line lengths to 4096 bytes.
Although this always indicates corruption, the current code doesn't handle
that very nicely. One fix would be to just ignore such long lines, but this
is easier to implement..

11 years agolib-http: client: Fixed assert crash occurring when DNS lookup fails immediately...
Stephan Bosch [Thu, 9 Oct 2014 21:46:15 +0000 (00:46 +0300)] 
lib-http: client: Fixed assert crash occurring when DNS lookup fails immediately during request submission.
In that situation, the request was not dropped from the queue immediately, triggering the assert crash.

11 years agolib-lda: Compiler warning fix
Timo Sirainen [Thu, 9 Oct 2014 18:23:08 +0000 (21:23 +0300)] 
lib-lda: Compiler warning fix

11 years agombox: Removed obsolete code that also wasn't compiling because of previous commit.
Timo Sirainen [Thu, 9 Oct 2014 18:22:45 +0000 (21:22 +0300)] 
mbox: Removed obsolete code that also wasn't compiling because of previous commit.

11 years agoman: doveadm-acl.1: Corrected description of default output formatter.
Pascal Volk [Thu, 9 Oct 2014 18:19:03 +0000 (18:19 +0000)] 
man: doveadm-acl.1: Corrected description of default output formatter.

11 years agolib-index: Removed dovecot.index locking related code, which is no longer used.
Timo Sirainen [Thu, 9 Oct 2014 17:46:31 +0000 (20:46 +0300)] 
lib-index: Removed dovecot.index locking related code, which is no longer used.

11 years agolib: Updated comment to o_stream_send_istream()
Timo Sirainen [Thu, 9 Oct 2014 15:41:06 +0000 (18:41 +0300)] 
lib: Updated comment to o_stream_send_istream()

11 years agolib: Fixed assert-crash in o_stream_send_istream() if input stream was the one that...
Timo Sirainen [Thu, 9 Oct 2014 15:40:54 +0000 (18:40 +0300)] 
lib: Fixed assert-crash in o_stream_send_istream() if input stream was the one that failed.

11 years agolib-index: Added mail_index_sync_no_warning() to prevent "long transaction lock"...
Timo Sirainen [Thu, 9 Oct 2014 15:27:14 +0000 (18:27 +0300)] 
lib-index: Added mail_index_sync_no_warning() to prevent "long transaction lock" warnings.
Use it with Maildir to prevent double-warning.

11 years agolib-index: Include reason string in warnings about keeping transaction log locked...
Timo Sirainen [Thu, 9 Oct 2014 15:26:05 +0000 (18:26 +0300)] 
lib-index: Include reason string in warnings about keeping transaction log locked for too long.

11 years agolib-index: Replaced some automatic transaction log unlocks with asserts.
Timo Sirainen [Thu, 9 Oct 2014 15:23:41 +0000 (18:23 +0300)] 
lib-index: Replaced some automatic transaction log unlocks with asserts.
Some earlier Dovecot versions were read-locking transaction logs and this
was useful there. But now we only do exclusive locking for the log head, so
it's an error not to explicitly unlock the files.

11 years agolib-index: If locking transaction log times out, show the PID which has it locked.
Timo Sirainen [Thu, 9 Oct 2014 15:20:56 +0000 (18:20 +0300)] 
lib-index: If locking transaction log times out, show the PID which has it locked.

11 years agomaildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as threshold for logging a "long...
Timo Sirainen [Thu, 9 Oct 2014 15:19:11 +0000 (18:19 +0300)] 
maildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as threshold for logging a "long sync" warning.
This is because the index syncing keeps the log locked, and other processes
trying to lock the log will start logging warnings as well.

11 years agolib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as part of public API.
Timo Sirainen [Thu, 9 Oct 2014 15:17:26 +0000 (18:17 +0300)] 
lib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as part of public API.

11 years agolib: o_stream_send_istream() shouldn't ignore EINTRs for file ostreams.
Timo Sirainen [Thu, 9 Oct 2014 15:14:43 +0000 (18:14 +0300)] 
lib: o_stream_send_istream() shouldn't ignore EINTRs for file ostreams.
Also added extra asserts to make sure that either we return an error or we
write everything from input stream to output stream. This should make it
safe to write to files using just:

if (o_stream_send_istream(ostream, istream) < 0) {
  // failed
} else {
  // everything in istream was written to ostream
}

11 years agolib: o_stream_send_istream() should return -1 if there was an error reading input...
Timo Sirainen [Thu, 9 Oct 2014 15:12:46 +0000 (18:12 +0300)] 
lib: o_stream_send_istream() should return -1 if there was an error reading input stream.

11 years agolib: Added file_lock_find() to find which process has a file locked.
Timo Sirainen [Thu, 9 Oct 2014 15:12:14 +0000 (18:12 +0300)] 
lib: Added file_lock_find() to find which process has a file locked.

11 years agolib-storage: Small comment update
Timo Sirainen [Thu, 9 Oct 2014 13:51:22 +0000 (16:51 +0300)] 
lib-storage: Small comment update

11 years agolib-storage: If uncached header unfolding fails, panic instead of returning error.
Timo Sirainen [Thu, 9 Oct 2014 13:42:01 +0000 (16:42 +0300)] 
lib-storage: If uncached header unfolding fails, panic instead of returning error.
This really shouldn't be happening. This also makes it clear that return
value -1 means some kind of I/O error instead of corruption.

11 years agolib-storage: Fixed header parsing when there were multiple same header names.
Timo Sirainen [Thu, 9 Oct 2014 13:41:23 +0000 (16:41 +0300)] 
lib-storage: Fixed header parsing when there were multiple same header names.
For example if a mail had:

Name1: a
Name1: b
Name2: c

If the Name1: was initially added to cache and Name2: not, but later on both
were attempted to be added to cache, the Name2: lookup would have been added
with "b" instead of "c" value.

11 years agolib-lda: Added smtp_client_abort()
Timo Sirainen [Thu, 9 Oct 2014 09:02:21 +0000 (12:02 +0300)] 
lib-lda: Added smtp_client_abort()

11 years agolda, lmtp: Use mail_deliver_context.tempfail_error first if it exists (instead of...
Timo Sirainen [Wed, 8 Oct 2014 19:10:34 +0000 (22:10 +0300)] 
lda, lmtp: Use mail_deliver_context.tempfail_error first if it exists (instead of storage error).

11 years agolib: Compiling fix for FreeBSD
Timo Sirainen [Wed, 8 Oct 2014 13:28:40 +0000 (16:28 +0300)] 
lib: Compiling fix for FreeBSD
Patch by Eero Hänninen

11 years agolib-storage: LAYOUT=index small code cleanup
Timo Sirainen [Wed, 8 Oct 2014 08:34:05 +0000 (11:34 +0300)] 
lib-storage: LAYOUT=index small code cleanup

11 years agolib-storage: Fixed earlier LAYOUT=index change to refresh index before opening a...
Timo Sirainen [Wed, 8 Oct 2014 08:33:50 +0000 (11:33 +0300)] 
lib-storage: Fixed earlier LAYOUT=index change to refresh index before opening a view to it.
Fixes an assert-crash.

11 years agoman: Added doveadm-proxy.1.
Pascal Volk [Tue, 7 Oct 2014 22:24:21 +0000 (22:24 +0000)] 
man: Added doveadm-proxy.1.

11 years agolib-storage: Fixed some race condition crashes with LAYOUT=index
Timo Sirainen [Tue, 7 Oct 2014 18:35:44 +0000 (21:35 +0300)] 
lib-storage: Fixed some race condition crashes with LAYOUT=index

11 years agolib-storage: Fixed assert-crash when BODYSTRUCTURE parsing fails due to broken mail...
Timo Sirainen [Tue, 7 Oct 2014 17:29:16 +0000 (20:29 +0300)] 
lib-storage: Fixed assert-crash when BODYSTRUCTURE parsing fails due to broken mail size.

11 years agolib-mail: Added asserts
Timo Sirainen [Tue, 7 Oct 2014 17:28:06 +0000 (20:28 +0300)] 
lib-mail: Added asserts

11 years agolib-index: Fixed assert-crash in some cache locking race conditions.
Timo Sirainen [Tue, 7 Oct 2014 17:13:36 +0000 (20:13 +0300)] 
lib-index: Fixed assert-crash in some cache locking race conditions.
If mail_index_map() is being called, we can't refresh the index or it'll
crash. It wouldn't help anyway, since the index was just refreshed.

11 years agolib-fs: struct fs_file's write_pending is a flag
Phil Carmody [Tue, 7 Oct 2014 16:48:34 +0000 (19:48 +0300)] 
lib-fs: struct fs_file's write_pending is a flag
Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib-index: Delay unlocking cache compression until changes to transaction log are...
Timo Sirainen [Tue, 7 Oct 2014 16:07:16 +0000 (19:07 +0300)] 
lib-index: Delay unlocking cache compression until changes to transaction log are committed.
This should fix race condition with two processes compressing the file at
the same time with same file_seq and becoming confused.

11 years agolib-index: Added path parameter to mail_index_create_tmp_file()
Timo Sirainen [Tue, 7 Oct 2014 16:04:36 +0000 (19:04 +0300)] 
lib-index: Added path parameter to mail_index_create_tmp_file()
This allows using it for creating any kind of a new index file with proper
file permissions.

Some of the old code should probably be changed to use this. Maybe even move
this function to public mail-index.h

11 years agolib-index: Try to minimize race conditions while compressing cache.
Timo Sirainen [Tue, 7 Oct 2014 15:58:01 +0000 (18:58 +0300)] 
lib-index: Try to minimize race conditions while compressing cache.
There are some unavoidable race conditions, but try to keep their time
window as small as possible.

11 years agolib-index: mail_cache_lock() partial rewrite.
Timo Sirainen [Tue, 7 Oct 2014 15:47:09 +0000 (18:47 +0300)] 
lib-index: mail_cache_lock() partial rewrite.
require_same_reset_id is no longer needed, if it ever was. If we're locking
the cache file, we always want the latest one. The logic of locking in
general was somewhat confusing and it probably didn't always successfully
lock when it should have, because the reset_id happened to match an old
file.

11 years agolib-index: Code cleanup - avoid code duplication.
Timo Sirainen [Mon, 6 Oct 2014 23:54:35 +0000 (02:54 +0300)] 
lib-index: Code cleanup - avoid code duplication.

11 years agolib-index: Fixed cache file creation race condition.
Timo Sirainen [Mon, 6 Oct 2014 23:35:41 +0000 (02:35 +0300)] 
lib-index: Fixed cache file creation race condition.
If two processes are creating the index files at the same time, don't have
one of them delete the dovecot.index.cache that the other one just created.
This means we never should be calling mail_cache_create(), so it was removed
entirely.

11 years agolib-index: Don't keep cache file locked for as long while syncing index.
Timo Sirainen [Mon, 6 Oct 2014 23:33:03 +0000 (02:33 +0300)] 
lib-index: Don't keep cache file locked for as long while syncing index.
The earlier code was required for updating the cache offsets, but this code
no longer exists. Now we just need to update the record counts in the
header, which can be done quickly at the end of the sync.

11 years agoman: Fixed broken syntax in doveadm-sync.1.
Pascal Volk [Mon, 6 Oct 2014 20:50:34 +0000 (20:50 +0000)] 
man: Fixed broken syntax in doveadm-sync.1.

11 years agolib-dict: Fixed race condition in mkdir()ing dict file's parent directory.
Timo Sirainen [Mon, 6 Oct 2014 19:12:01 +0000 (22:12 +0300)] 
lib-dict: Fixed race condition in mkdir()ing dict file's parent directory.

11 years agosdbox: Fixed race condition when two processes mkdir() the same directory
Timo Sirainen [Mon, 6 Oct 2014 18:15:31 +0000 (21:15 +0300)] 
sdbox: Fixed race condition when two processes mkdir() the same directory

11 years agoMinor code cleanup to previous change.
Timo Sirainen [Mon, 6 Oct 2014 17:17:19 +0000 (20:17 +0300)] 
Minor code cleanup to previous change.
No need to have a data stack frame here.

11 years agolog_timestamp setting supports now %{usecs}
Timo Sirainen [Mon, 6 Oct 2014 17:16:07 +0000 (20:16 +0300)] 
log_timestamp setting supports now %{usecs}
This is mainly useful for debugging.

11 years agoman: Added doveadm-replicator.1.
Pascal Volk [Sun, 5 Oct 2014 23:36:10 +0000 (23:36 +0000)] 
man: Added doveadm-replicator.1.

11 years agoman: Forgot to update doveadm.1 in previous commit (fec91a386bb0).
Pascal Volk [Sun, 5 Oct 2014 23:25:48 +0000 (23:25 +0000)] 
man: Forgot to update doveadm.1 in previous commit (fec91a386bb0).

11 years agoman: Reworked dsync.1 and renamed it to doveadm-sync.1.
Pascal Volk [Sun, 5 Oct 2014 20:18:20 +0000 (20:18 +0000)] 
man: Reworked dsync.1 and renamed it to doveadm-sync.1.

11 years agodsync: Debug logging improvements and comment clarifications.
Timo Sirainen [Mon, 6 Oct 2014 10:17:00 +0000 (13:17 +0300)] 
dsync: Debug logging improvements and comment clarifications.

11 years agodsync: Fixed potential crash when deleting mailbox.
Timo Sirainen [Mon, 6 Oct 2014 10:13:04 +0000 (13:13 +0300)] 
dsync: Fixed potential crash when deleting mailbox.

11 years agodoveadm backup: Don't unnecessarily delete mailbox when handling expunges
Timo Sirainen [Mon, 6 Oct 2014 10:15:10 +0000 (13:15 +0300)] 
doveadm backup: Don't unnecessarily delete mailbox when handling expunges

11 years agodoveadm backup: Local mailbox was deleted also when there were just new messages.
Timo Sirainen [Mon, 6 Oct 2014 09:21:52 +0000 (12:21 +0300)] 
doveadm backup: Local mailbox was deleted also when there were just new messages.

11 years agodoveadm backup: When deleting a mailbox, log a warning, not just a debug message.
Timo Sirainen [Mon, 6 Oct 2014 09:21:24 +0000 (12:21 +0300)] 
doveadm backup: When deleting a mailbox, log a warning, not just a debug message.
Because we're also returning temporary failure in any case, so there needs
to be some kind of a warning/error logged.

11 years agodsync: Fixed linking with some systems.
Timo Sirainen [Sun, 5 Oct 2014 17:56:39 +0000 (20:56 +0300)] 
dsync: Fixed linking with some systems.

11 years agodoveadm sync/backup: Updated usage string
Timo Sirainen [Sun, 5 Oct 2014 10:24:02 +0000 (13:24 +0300)] 
doveadm sync/backup: Updated usage string

11 years agolib: Added support for connecting UDP sockets.
Stephan Bosch [Sat, 4 Oct 2014 14:48:03 +0000 (17:48 +0300)] 
lib: Added support for connecting UDP sockets.

11 years agolib-http: Fixed detecting disconnection when ioloop is running only intermittently.
Stephan Bosch [Sat, 4 Oct 2014 14:32:48 +0000 (17:32 +0300)] 
lib-http: Fixed detecting disconnection when ioloop is running only intermittently.
This fix only applies to ioloops created and run by lib-http itself.

11 years agolib-http: client: Added support for absolute request timeout.
Stephan Bosch [Sat, 4 Oct 2014 14:32:48 +0000 (17:32 +0300)] 
lib-http: client: Added support for absolute request timeout.
Requests cannot survive beyond this deadline.

11 years agolib-http: client: Added support for delaying requests in milliseconds.
Stephan Bosch [Sat, 4 Oct 2014 14:31:38 +0000 (17:31 +0300)] 
lib-http: client: Added support for delaying requests in milliseconds.

11 years agolib-http: client queue: Start using new timeval_cmp_margin function for delay handling.
Stephan Bosch [Sat, 4 Oct 2014 14:31:38 +0000 (17:31 +0300)] 
lib-http: client queue: Start using new timeval_cmp_margin function for delay handling.

11 years agolib: Fixed io_loop_move_timeout() to retain the next_run time, so that the timeout...
Stephan Bosch [Sat, 4 Oct 2014 14:31:38 +0000 (17:31 +0300)] 
lib: Fixed io_loop_move_timeout() to retain the next_run time, so that the timeout is not implicitly reset.
This problem became with timeout_add_absolute(), since resetting an
absolute timeout causes it to fire immediately (msecs == 0).

11 years agolib: ioloop: Fixed absolute timeout removal.
Stephan Bosch [Sat, 4 Oct 2014 14:31:14 +0000 (17:31 +0300)] 
lib: ioloop: Fixed absolute timeout removal.
Absolute timeouts fire only once, so the timeout should be removed from the
priority queue once it fires.

11 years agolib-http: client: Fixed problem occuring when a nested ioloop was run inside a reques...
Stephan Bosch [Sat, 4 Oct 2014 14:30:54 +0000 (17:30 +0300)] 
lib-http: client: Fixed problem occuring when a nested ioloop was run inside a request callback using the same client.
If requests in the nested ioloop would use the same connection as the one
that called the callback, the requests would (in the best scenario) all be
doomed to time out.

11 years agofs-posix: Compile fix for systems without flock()
Timo Sirainen [Fri, 3 Oct 2014 21:29:30 +0000 (00:29 +0300)] 
fs-posix: Compile fix for systems without flock()

11 years agoMake static analyzer happier
Timo Sirainen [Fri, 3 Oct 2014 19:44:31 +0000 (22:44 +0300)] 
Make static analyzer happier

11 years agolib-lda: smtp client may have crashed if remote returned a permanent error.
Timo Sirainen [Fri, 3 Oct 2014 19:39:53 +0000 (22:39 +0300)] 
lib-lda: smtp client may have crashed if remote returned a permanent error.

11 years agoAdded signature for changeset 34e52cbeb837
Timo Sirainen [Fri, 3 Oct 2014 15:18:44 +0000 (18:18 +0300)] 
Added signature for changeset 34e52cbeb837

11 years agoAdded tag 2.2.14.rc1 for changeset 34e52cbeb837
Timo Sirainen [Fri, 3 Oct 2014 15:18:41 +0000 (18:18 +0300)] 
Added tag 2.2.14.rc1 for changeset 34e52cbeb837

11 years agoReleased v2.2.14.rc1. 2.2.14.rc1
Timo Sirainen [Fri, 3 Oct 2014 15:18:41 +0000 (18:18 +0300)] 
Released v2.2.14.rc1.

11 years agoexample-config: Added ssl_options setting.
Timo Sirainen [Fri, 3 Oct 2014 14:36:11 +0000 (17:36 +0300)] 
example-config: Added ssl_options setting.

11 years agoimap: GETMETADATA was returning mailbox name as UTF-8 instead of mUTF-7
Timo Sirainen [Fri, 3 Oct 2014 14:11:58 +0000 (17:11 +0300)] 
imap: GETMETADATA was returning mailbox name as UTF-8 instead of mUTF-7

11 years agofs-posix: Added prefix parameter that is prefixed to all paths.
Timo Sirainen [Fri, 3 Oct 2014 13:57:39 +0000 (16:57 +0300)] 
fs-posix: Added prefix parameter that is prefixed to all paths.

11 years agolib-lda, lmtp: Separate internal errors from remote errors.
Timo Sirainen [Fri, 3 Oct 2014 13:31:33 +0000 (16:31 +0300)] 
lib-lda, lmtp: Separate internal errors from remote errors.
LMTP proxy shouldn't log remote errors with error level, because the proxy
itself didn't have any failure.

This is an API change, but I'm not aware of any plugins actually using the
lmtp-client.h directly.

11 years agomaster: If log process crashes, restart it immediately.
Timo Sirainen [Fri, 3 Oct 2014 13:04:06 +0000 (16:04 +0300)] 
master: If log process crashes, restart it immediately.
The regular service_monitor_listen_start() doesn't work for it, because the
log fds aren't in the listeners.

11 years agodsync: Debug message fix
Timo Sirainen [Thu, 2 Oct 2014 16:43:25 +0000 (19:43 +0300)] 
dsync: Debug message fix

11 years agolib-storage: Added %{session} to mail_user_var_expand_table()
Timo Sirainen [Thu, 2 Oct 2014 16:43:09 +0000 (19:43 +0300)] 
lib-storage: Added %{session} to mail_user_var_expand_table()

11 years agodsync: Improved debug logging.
Timo Sirainen [Thu, 2 Oct 2014 10:15:22 +0000 (13:15 +0300)] 
dsync: Improved debug logging.

11 years agodsync: Added more debug logging.
Timo Sirainen [Thu, 2 Oct 2014 09:56:30 +0000 (12:56 +0300)] 
dsync: Added more debug logging.

11 years agodoveadm backup: Fix to earlier commit - don't try to delete an already empty mailbox.
Timo Sirainen [Thu, 2 Oct 2014 09:48:00 +0000 (12:48 +0300)] 
doveadm backup: Fix to earlier commit - don't try to delete an already empty mailbox.

11 years agodoveadm backup: Locally expunged mails weren't always added back.
Timo Sirainen [Thu, 2 Oct 2014 09:31:34 +0000 (12:31 +0300)] 
doveadm backup: Locally expunged mails weren't always added back.

11 years agolib-http: client: Fixed recovery after connection failure.
Stephan Bosch [Wed, 1 Oct 2014 07:33:49 +0000 (10:33 +0300)] 
lib-http: client: Fixed recovery after connection failure.
If a parallel already connected connection was active, the queue wasn't notified of the failure.
Only pending connections should be considered in this case and not established ones.

11 years agolib-http: client: Fixed aborting request in the middle of sending payload.
Stephan Bosch [Wed, 1 Oct 2014 07:33:39 +0000 (10:33 +0300)] 
lib-http: client: Fixed aborting request in the middle of sending payload.
If the request payload is so big that it cannot be sent all at once, the
caller may at some point abort the request when it is still being sent. The
bug occurred when the request finally finished sending. It erroneously
advanced the state to WAITING rather than remaining ABORTED, thus
'reviving' the request unexpectedly.

11 years agolib: Fixed earlier timeout_add_absolute() commit.
Timo Sirainen [Tue, 30 Sep 2014 21:17:09 +0000 (00:17 +0300)] 
lib: Fixed earlier timeout_add_absolute() commit.
I removed too much from Stephan's patch.

11 years agolib: Created timeval_cmp_margin().
Stephan Bosch [Tue, 30 Sep 2014 21:13:36 +0000 (00:13 +0300)] 
lib: Created timeval_cmp_margin().
It's identical to timeval_cmp(), except that it ignores tv_usec differences
smaller than a specified margin.

11 years agolib: Added support for adding milliseconds to struct timeval time values.
Stephan Bosch [Tue, 30 Sep 2014 21:06:19 +0000 (00:06 +0300)] 
lib: Added support for adding milliseconds to struct timeval time values.

11 years agolib: Added support for setting timeouts at absolute time, rather than relative to...
Stephan Bosch [Tue, 30 Sep 2014 21:03:17 +0000 (00:03 +0300)] 
lib: Added support for setting timeouts at absolute time, rather than relative to current time.

11 years agolib-http: client: The http_client_queue_fail() function aborted requests in an unsafe...
Stephan Bosch [Tue, 30 Sep 2014 20:49:52 +0000 (23:49 +0300)] 
lib-http: client: The http_client_queue_fail() function aborted requests in an unsafe manner.
Copied queues before freeing the requests, because the destroyed requests modify the queue.

11 years agolib-http: client: Fixed crash occurring sometimes when delay timeout expired.
Stephan Bosch [Tue, 30 Sep 2014 20:49:45 +0000 (23:49 +0300)] 
lib-http: client: Fixed crash occurring sometimes when delay timeout expired.
Forgot to drop destroyed requests from delay queue.

11 years agolib-sasl: Added reference counting to lib-sasl initialization.
Stephan Bosch [Tue, 30 Sep 2014 20:49:35 +0000 (23:49 +0300)] 
lib-sasl: Added reference counting to lib-sasl initialization.

11 years agolib: Improved istream-file's failing read()/pread() error message.
Timo Sirainen [Mon, 29 Sep 2014 19:44:03 +0000 (22:44 +0300)] 
lib: Improved istream-file's failing read()/pread() error message.

11 years agolib: If i_stream_default_seek_nonseekable() can't seek, set a more readable error...
Timo Sirainen [Mon, 29 Sep 2014 19:43:44 +0000 (22:43 +0300)] 
lib: If i_stream_default_seek_nonseekable() can't seek, set a more readable error message.