]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agolib: test-array - fix off-by-one in test_reverse
Phil Carmody [Tue, 25 Nov 2014 01:45:35 +0000 (03:45 +0200)] 
lib: test-array - fix off-by-one in test_reverse
i is not used as an index, but as a count. Therefore, it can attain the
array size in the loop without causing any buffer overflows.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-array - fatal tests
Phil Carmody [Tue, 25 Nov 2014 01:44:55 +0000 (03:44 +0200)] 
lib: test-array - fatal tests
Tests both of the i_asserts which aren't already protected by TYPEOF compile-time
checks.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-array - new equality testers
Phil Carmody [Tue, 25 Nov 2014 01:44:31 +0000 (03:44 +0200)] 
lib: test-array - new equality testers
One using strings that get dereferenced, the other using the context pointer
to pass in external data.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: array - element-wise comparison via callback
Phil Carmody [Tue, 25 Nov 2014 01:43:02 +0000 (03:43 +0200)] 
lib: array - element-wise comparison via callback
2 are provided - with and without a context pointer.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-array - test array_cmp()
Phil Carmody [Tue, 25 Nov 2014 01:43:02 +0000 (03:43 +0200)] 
lib: test-array - test array_cmp()
Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: guid - turn uint8_t * parameters into guid_128_t
Phil Carmody [Tue, 25 Nov 2014 01:31:34 +0000 (03:31 +0200)] 
lib: guid - turn uint8_t * parameters into guid_128_t
As we expose the type's internals, there's no concrete difference between
the two, but it might help static code checkers to detect misuse of the
library, or sloppy typing.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agodict-redis: Small error handling fix to previous change.
Timo Sirainen [Tue, 25 Nov 2014 01:12:25 +0000 (03:12 +0200)] 
dict-redis: Small error handling fix to previous change.

11 years agodict-redis: Added support for expire_secs=n parameter.
Timo Sirainen [Tue, 25 Nov 2014 01:10:41 +0000 (03:10 +0200)] 
dict-redis: Added support for expire_secs=n parameter.
It performs EXPIRE command for the added keys immediately after the SET.

11 years agolib-storage: Don't fetch wanted_fields for messages that don't match the search query.
Timo Sirainen [Tue, 25 Nov 2014 00:56:37 +0000 (02:56 +0200)] 
lib-storage: Don't fetch wanted_fields for messages that don't match the search query.
For example "doveadm fetch text subject foo" was opening all the mails, even
though only a few matched the subject (that was hopefully already in cache
file).

The behavior still isn't perfect though. The wanted_fields should probably
be split into search_wanted_fields and fetch_wanted_fields, but the current
behavior is likely good enough for now.

11 years agolmtp: Added TLS security information to Received: header when STARTTLS was used.
Timo Sirainen [Fri, 21 Nov 2014 09:17:00 +0000 (18:17 +0900)] 
lmtp: Added TLS security information to Received: header when STARTTLS was used.

11 years agostats: Removed extra TAB from global stats exporting.
Timo Sirainen [Thu, 20 Nov 2014 13:03:25 +0000 (22:03 +0900)] 
stats: Removed extra TAB from global stats exporting.

11 years agolib-index: If transaction log is unexpectedly recreated while it was locked, log...
Timo Sirainen [Thu, 20 Nov 2014 06:15:20 +0000 (15:15 +0900)] 
lib-index: If transaction log is unexpectedly recreated while it was locked, log a nice error.
Instead of just assert-crashing.

11 years agoauth: Increase timeout for multi-line auth-worker replies to 30 minutes.
Timo Sirainen [Wed, 19 Nov 2014 20:40:55 +0000 (05:40 +0900)] 
auth: Increase timeout for multi-line auth-worker replies to 30 minutes.
This should help with running long-running doveadm -A commands.

11 years agombox: Added more (and earlier) detection for errors in mbox istreams.
Timo Sirainen [Wed, 19 Nov 2014 08:37:57 +0000 (17:37 +0900)] 
mbox: Added more (and earlier) detection for errors in mbox istreams.

11 years agombox: istream_raw_mbox_seek() needs to reset all corruption errors.
Timo Sirainen [Wed, 19 Nov 2014 08:37:18 +0000 (17:37 +0900)] 
mbox: istream_raw_mbox_seek() needs to reset all corruption errors.
We now reset all errors, but it doesn't really matter.

11 years agolib-fs: Added FS_PROPERTY_ASYNC.
Timo Sirainen [Sat, 15 Nov 2014 01:26:16 +0000 (03:26 +0200)] 
lib-fs: Added FS_PROPERTY_ASYNC.

11 years agoAdded support for base32 encode/decode.
Stephan Bosch [Sat, 15 Nov 2014 00:39:04 +0000 (02:39 +0200)] 
Added support for base32 encode/decode.

11 years agoImplemented dot output stream. This outputs data in the dot-escaped format needed...
Stephan Bosch [Sat, 15 Nov 2014 00:37:45 +0000 (02:37 +0200)] 
Implemented dot output stream. This outputs data in the dot-escaped format needed for the SMTP data command.
The sequence CRLF.CRLF is sent upon closing the stream.

11 years agolib-http: client: Removed connection code that is already in src/lib/connection.c.
Stephan Bosch [Sat, 15 Nov 2014 00:37:03 +0000 (02:37 +0200)] 
lib-http: client: Removed connection code that is already in src/lib/connection.c.

11 years agolib: connection: Now uses io_add_istream() instead of io_add().
Stephan Bosch [Sat, 15 Nov 2014 00:36:22 +0000 (02:36 +0200)] 
lib: connection: Now uses io_add_istream() instead of io_add().

11 years agolib-imap-storage: Created new METADATA API.
Stephan Bosch [Sat, 15 Nov 2014 00:27:27 +0000 (02:27 +0200)] 
lib-imap-storage: Created new METADATA API.

11 years agolib-fs: Added fs_lookup_metadata() wrapper to fs_get_metadata()
Timo Sirainen [Sat, 15 Nov 2014 00:22:56 +0000 (02:22 +0200)] 
lib-fs: Added fs_lookup_metadata() wrapper to fs_get_metadata()

11 years agolib-master: Don't even attempt to initialize SSL context if ssl=no
Timo Sirainen [Fri, 14 Nov 2014 22:30:06 +0000 (00:30 +0200)] 
lib-master: Don't even attempt to initialize SSL context if ssl=no

11 years agolib-ssl-iostream: Close the plain iostreams when ssl-iostream is destroyed.
Timo Sirainen [Fri, 14 Nov 2014 22:27:27 +0000 (00:27 +0200)] 
lib-ssl-iostream: Close the plain iostreams when ssl-iostream is destroyed.

11 years agolib: array/hash - enable typof checks for more compilers
Phil Carmody [Fri, 14 Nov 2014 22:14:20 +0000 (00:14 +0200)] 
lib: array/hash - enable typof checks for more compilers
We have a HAVE_TYPEOF macro from autoconf, we may as well make use of it.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: array/hash - protect macro parameters
Phil Carmody [Fri, 14 Nov 2014 22:06:09 +0000 (00:06 +0200)] 
lib: array/hash - protect macro parameters
If a pointer parameter p is ``ptr + offset'', then sizeof(*p) becomes
sizeof(*ptr + offset), which isn't what was wanted. sizeof(*(p)) is the
safe expression to use instead. Ditto for just ``*data'' in array.h.

The macros in hash.h which have been changed have been reindented for
better readability and consistency.

The bracketting of elem in (elem)++ in both of the array_foreach* macros
isn't actually useful, as elem participates in token-pasting elsewhere.
However, the two macros have been made more similar to each other for
better parallelism.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agoimap: namespace { order } parameter now specifies the order returned in NAMESPACE...
Timo Sirainen [Fri, 14 Nov 2014 08:59:57 +0000 (00:59 -0800)] 
imap: namespace { order } parameter now specifies the order returned in NAMESPACE reply.
This is relevant only if there are multiple visible namespaces with the same
type. The default order depends primarily on the length of the prefix because
of internal sorting (the order of equal length prefixes can't really be
relied on).

11 years agoimap: Added client_disconnect_if_inconsistent() to remove code duplication.
Timo Sirainen [Fri, 14 Nov 2014 00:29:27 +0000 (02:29 +0200)] 
imap: Added client_disconnect_if_inconsistent() to remove code duplication.
Based on patch by Stephan Bosch

11 years agodoveadm: If passdb lookup returns port, use it to override the doveadm_port setting.
Timo Sirainen [Fri, 14 Nov 2014 06:55:59 +0000 (22:55 -0800)] 
doveadm: If passdb lookup returns port, use it to override the doveadm_port setting.

11 years agolib-fs: fs-metawrap now supports adding more metadata fields while file is being...
Timo Sirainen [Fri, 14 Nov 2014 00:00:12 +0000 (02:00 +0200)] 
lib-fs: fs-metawrap now supports adding more metadata fields while file is being saved.
This potentially adds yet another temporary file write though.

11 years agolib: Added iostream_temp_create_named()
Timo Sirainen [Thu, 13 Nov 2014 23:19:37 +0000 (01:19 +0200)] 
lib: Added iostream_temp_create_named()

11 years agolib-index: Make sure dovecot.index.cache parsing doesn't go to infinite loop.
Timo Sirainen [Thu, 13 Nov 2014 09:29:41 +0000 (11:29 +0200)] 
lib-index: Make sure dovecot.index.cache parsing doesn't go to infinite loop.
Although we guarantee this only for files generated with Dovecot v2.2+
because it's too much trouble to check for older versions.

11 years agolib-storage: If storage creation fails, destroy all the already created namespaces...
Timo Sirainen [Thu, 13 Nov 2014 09:14:08 +0000 (11:14 +0200)] 
lib-storage: If storage creation fails, destroy all the already created namespaces/storages.

11 years agolib-storage: Fixed crash if mail_namespaces_init_add() failed due to invalid settings.
Timo Sirainen [Thu, 13 Nov 2014 08:57:07 +0000 (10:57 +0200)] 
lib-storage: Fixed crash if mail_namespaces_init_add() failed due to invalid settings.
Normally the invalid settings were caught by config process already.

11 years agolib: ostream.stream_errno is now exactly the same as last_failed_errno.
Timo Sirainen [Thu, 13 Nov 2014 08:09:28 +0000 (10:09 +0200)] 
lib: ostream.stream_errno is now exactly the same as last_failed_errno.
There's a lot of code that checks only for stream_errno instead of
last_failed_errno at the flush time where the stream_errno might have
already been cleared.

I'm not sure why these were separated in the first place. I don't think
there are any stream errors which just correctly go away by retrying the
operation. Perhaps some code could have attempted seeking and try to handle
the ESPIPE error, but that kind of code paths are rare and they could clear
the errors themselves if needed.

11 years agolib: ostream-file checks "sendfile() not supported" a bit better.
Timo Sirainen [Thu, 13 Nov 2014 08:01:37 +0000 (10:01 +0200)] 
lib: ostream-file checks "sendfile() not supported" a bit better.
There are other reasons why stream_errno=EINVAL could have been set, at
least in theory.

11 years agolib-storage: Added "creator" for mail_user.
Timo Sirainen [Thu, 13 Nov 2014 07:53:35 +0000 (09:53 +0200)] 
lib-storage: Added "creator" for mail_user.
This allows fixing stats plugin to update stats also for shared mailboxes.
That's a bit complicated change though, so I'm not sure how soon it'll
happen. But at least this change makes it possible more easily later on.
Might have other uses too.

11 years agolib: Never implicitly clear istream's stream_errno.
Timo Sirainen [Thu, 13 Nov 2014 07:39:24 +0000 (09:39 +0200)] 
lib: Never implicitly clear istream's stream_errno.
I'm not really sure why these were added in the first place. At some point
the stream_errno was cleared in more places, such as just before reading,
but those were also removed already. I don't see any benefit for these, just
potential problems.

11 years agolib-mail: message_search_msg() shouldn't clear istream's stream_errno.
Timo Sirainen [Thu, 13 Nov 2014 07:35:59 +0000 (09:35 +0200)] 
lib-mail: message_search_msg() shouldn't clear istream's stream_errno.
If the input stream failed, retrying the operation without cached
message_parts is unlikely to help. This also loses the original error
message.

11 years agodsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter.
Timo Sirainen [Thu, 13 Nov 2014 07:12:38 +0000 (09:12 +0200)] 
dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter.
This doesn't really do much because exporter shouldn't be writing anything,
but it allows plugins to find out if transactions is coming from dsync.

11 years agolmtp: Added support for DSN ORCPT parameter.
Timo Sirainen [Thu, 13 Nov 2014 01:58:51 +0000 (03:58 +0200)] 
lmtp: Added support for DSN ORCPT parameter.
If the parameter is specified, it's used as the original recipient address
in Sieve. The ORCPT parameter is also proxied to destination LMTP server if
used (without checking if it supports it). We don't currently advertise DSN
extension, so this feature won't be enabled automatically.

11 years agoimap-stats: Fixed truncation of command args.
Timo Sirainen [Thu, 13 Nov 2014 00:48:22 +0000 (02:48 +0200)] 
imap-stats: Fixed truncation of command args.

11 years agostats: Use the same session ID string for stats tracking as everywhere else.
Timo Sirainen [Thu, 13 Nov 2014 00:39:51 +0000 (02:39 +0200)] 
stats: Use the same session ID string for stats tracking as everywhere else.
Generate a new ID only if there is no session ID assigned.

11 years agossl-params: Removed duplicate lib-ssl-iostream.la linking
Timo Sirainen [Thu, 13 Nov 2014 00:37:39 +0000 (02:37 +0200)] 
ssl-params: Removed duplicate lib-ssl-iostream.la linking

11 years agostats: Use the new str-table API to reduce memory usage for service strings.
Timo Sirainen [Thu, 13 Nov 2014 00:28:46 +0000 (02:28 +0200)] 
stats: Use the new str-table API to reduce memory usage for service strings.
There are only a couple of services, while there can be a lot of sessions.

11 years agolib: Added str-table API for keeping reference counted strings in a hash table.
Timo Sirainen [Thu, 13 Nov 2014 00:24:46 +0000 (02:24 +0200)] 
lib: Added str-table API for keeping reference counted strings in a hash table.

11 years agostats: Added support for "global" stats type.
Timo Sirainen [Wed, 12 Nov 2014 23:41:07 +0000 (01:41 +0200)] 
stats: Added support for "global" stats type.

11 years agodirector: Added support for backend cluster "tags".
Timo Sirainen [Wed, 12 Nov 2014 04:58:37 +0000 (06:58 +0200)] 
director: Added support for backend cluster "tags".
This allows using a single director ring for multiple backend clusters. By
default everything has an empty tag. A passdb lookup can return
"director_tag" field containing the wanted tag name. If there aren't any
backend servers with the wanted tag, it's treated the same as if there
aren't any backend servers available (= wait for 30 secs for a backend and
then return temporary failure).

Tags can be added to configuration by adding @tag suffix to IPs/hosts. For
example:

director_mail_servers = 10.0.0.100-10.0.0.110@name1 10.0.0.120@name2

"doveadm director add" can also add tags either with @tag suffix or with -t
parameter. "doveadm director status user@domain" requires giving the user's
correct tag with -t parameter or the results won't be correct (empty tag's
results are shown). Tags can't currently be changed for an existing host
without removing it first.

11 years agodirector: Don't restart request timeout when director state changes.
Timo Sirainen [Wed, 12 Nov 2014 04:46:45 +0000 (06:46 +0200)] 
director: Don't restart request timeout when director state changes.
If the state keeps changing all the time we'll never return timeouts for the
requests.

11 years agodirector: Added director_consistent_hashing setting.
Timo Sirainen [Wed, 12 Nov 2014 01:29:04 +0000 (03:29 +0200)] 
director: Added director_consistent_hashing setting.
This should have been the default since the beginning. I didn't thik it was
worth the trouble originally because in theory it shouldn't matter much if
users jump between multiple backends. But this makes caching behavior worse,
especially for systems which are using local cache files.

11 years agodirector: When logging a warning about ring being synced again, log how many seconds...
Timo Sirainen [Wed, 12 Nov 2014 00:04:14 +0000 (02:04 +0200)] 
director: When logging a warning about ring being synced again, log how many seconds it took

11 years agodirector: Always log a message when director handshake finishes.
Timo Sirainen [Tue, 11 Nov 2014 23:59:48 +0000 (01:59 +0200)] 
director: Always log a message when director handshake finishes.

11 years agodoveadm director ring status shows now more information
Timo Sirainen [Tue, 11 Nov 2014 23:51:29 +0000 (01:51 +0200)] 
doveadm director ring status shows now more information

11 years agolmtp: Show more information in process title.
Timo Sirainen [Tue, 11 Nov 2014 23:26:04 +0000 (01:26 +0200)] 
lmtp: Show more information in process title.
Most importantly show the username while messages are being delivered.

11 years agodoveadm: Support running non-mail commands via doveadm server.
Timo Sirainen [Tue, 11 Nov 2014 23:06:02 +0000 (01:06 +0200)] 
doveadm: Support running non-mail commands via doveadm server.
There are still some commands that print their output via printf though, so
they need to be fixed separately.

11 years agodoveadm: Moved commands related code to doveadm-cmd.[ch]
Timo Sirainen [Tue, 11 Nov 2014 23:04:27 +0000 (01:04 +0200)] 
doveadm: Moved commands related code to doveadm-cmd.[ch]
Commands are already split for command line-only commands and commands that
can be run via doveadm-server also.

11 years agodoveadm who: If parameters are invalid, print help text for who command instead of...
Timo Sirainen [Tue, 11 Nov 2014 22:52:44 +0000 (00:52 +0200)] 
doveadm who: If parameters are invalid, print help text for who command instead of the whole doveadm usage.

11 years agodoveadm: Code cleanups to prepare server code for non-mail commands.
Timo Sirainen [Tue, 11 Nov 2014 22:20:40 +0000 (00:20 +0200)] 
doveadm: Code cleanups to prepare server code for non-mail commands.

11 years agolib: Compiler warning fix in 32bit systems to previous change
Timo Sirainen [Tue, 11 Nov 2014 03:06:09 +0000 (05:06 +0200)] 
lib: Compiler warning fix in 32bit systems to previous change

11 years agolib: file_wait/try_lock() treats EINTR differently now for timeouts and for actual...
Timo Sirainen [Tue, 11 Nov 2014 01:13:16 +0000 (03:13 +0200)] 
lib: file_wait/try_lock() treats EINTR differently now for timeouts and for actual signals.

11 years agolib-storage: Mailbox list index now detects duplicate mailbox names.
Timo Sirainen [Fri, 31 Oct 2014 02:27:27 +0000 (04:27 +0200)] 
lib-storage: Mailbox list index now detects duplicate mailbox names.
With LAYOUT=index the duplicates are renamed.

11 years agodoveadm: Removed duplicate subcommands from list of commands.
Timo Sirainen [Wed, 5 Nov 2014 11:00:14 +0000 (13:00 +0200)] 
doveadm: Removed duplicate subcommands from list of commands.
For example don't show "mailbox ..|metadata|metadata|metadata|.."

11 years agoimap: If GETMETADATA with wildcards can't open some mailbox, don't assert-crash.
Timo Sirainen [Tue, 4 Nov 2014 12:49:44 +0000 (14:49 +0200)] 
imap: If GETMETADATA with wildcards can't open some mailbox, don't assert-crash.
Just send an untagged NO for the mailbox.

11 years agossl-params: Use lib-ssl-iostream's ssl_iostream_generate_params() instead of OpenSSL...
Timo Sirainen [Sat, 1 Nov 2014 00:05:31 +0000 (17:05 -0700)] 
ssl-params: Use lib-ssl-iostream's ssl_iostream_generate_params() instead of OpenSSL directly

11 years agolib-ssl-iostream: Added dh_length parameter to ssl_iostream_generate_params()
Timo Sirainen [Sat, 1 Nov 2014 00:04:58 +0000 (17:04 -0700)] 
lib-ssl-iostream: Added dh_length parameter to ssl_iostream_generate_params()
This is an API change, but nobody was actually using this function.

11 years agolib-ssl-iostream: Support non-1024bit DH parameters in ssl-parameters.dat.
Timo Sirainen [Fri, 31 Oct 2014 23:54:07 +0000 (16:54 -0700)] 
lib-ssl-iostream: Support non-1024bit DH parameters in ssl-parameters.dat.

11 years agolib-ssl-iostream: Destroy SSL module later in the atexit-callbacks.
Timo Sirainen [Thu, 30 Oct 2014 20:02:52 +0000 (22:02 +0200)] 
lib-ssl-iostream: Destroy SSL module later in the atexit-callbacks.

11 years agolib: Added lib_atexit_priority()
Timo Sirainen [Thu, 30 Oct 2014 20:00:14 +0000 (22:00 +0200)] 
lib: Added lib_atexit_priority()

11 years ago*-login: Also increase MASTER_AUTH_MAX_DATA_SIZE and add a check to make sure it...
Timo Sirainen [Thu, 30 Oct 2014 02:41:11 +0000 (04:41 +0200)] 
*-login: Also increase MASTER_AUTH_MAX_DATA_SIZE and add a check to make sure it's large enough.

11 years ago*-login: And actually make the previous changes work.
Timo Sirainen [Thu, 30 Oct 2014 02:36:50 +0000 (04:36 +0200)] 
*-login: And actually make the previous changes work.

11 years agoimap-login: Added "x-session-ext-id" parameter for ID command.
Timo Sirainen [Thu, 30 Oct 2014 01:33:46 +0000 (18:33 -0700)] 
imap-login: Added "x-session-ext-id" parameter for ID command.
It's exactly the same as "x-session-id", but this one can be safely used by
external software without having to worry about causing error messages in
older versions about too long session-id.

11 years agolib-master: Removed fixed length limit for session-id.
Timo Sirainen [Thu, 30 Oct 2014 01:32:36 +0000 (18:32 -0700)] 
lib-master: Removed fixed length limit for session-id.

11 years agolib: connection_switch_ioloop() should switch also input stream's ioloop.
Timo Sirainen [Wed, 29 Oct 2014 18:46:50 +0000 (11:46 -0700)] 
lib: connection_switch_ioloop() should switch also input stream's ioloop.

11 years agolmtp: Added support for STARTTLS command.
Timo Sirainen [Wed, 29 Oct 2014 16:58:01 +0000 (09:58 -0700)] 
lmtp: Added support for STARTTLS command.

11 years agolib-http: Make sure we don't access already freed client connection in payload-destro...
Timo Sirainen [Wed, 29 Oct 2014 00:15:31 +0000 (17:15 -0700)] 
lib-http: Make sure we don't access already freed client connection in payload-destroyed callback.

11 years agolib: io_remove() should finish closing the io before unreferencing its istream.
Timo Sirainen [Wed, 29 Oct 2014 00:07:21 +0000 (17:07 -0700)] 
lib: io_remove() should finish closing the io before unreferencing its istream.
This is because the istream unreferencing may close the fd.

11 years agolib-http: client: Fixed assertion failure in http_client_queue_fail().
Stephan Bosch [Tue, 28 Oct 2014 23:12:09 +0000 (16:12 -0700)] 
lib-http: client: Fixed assertion failure in http_client_queue_fail().
Don't explicitly clear the request array after looping through all
requests, since new requests may be added during the loop, not only
removed.

11 years agolib: istream-timeout logs how long the stream was open if parent read fails with...
Timo Sirainen [Tue, 28 Oct 2014 04:48:29 +0000 (21:48 -0700)] 
lib: istream-timeout logs how long the stream was open if parent read fails with ECONNRESET/EPIPE.

11 years agolib-http: If there's an error reading chunked http stream, set the error to the istream.
Timo Sirainen [Tue, 28 Oct 2014 04:43:10 +0000 (21:43 -0700)] 
lib-http: If there's an error reading chunked http stream, set the error to the istream.
Previously the error string was set, but it was never read by anything.

11 years agodsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly.
Timo Sirainen [Tue, 28 Oct 2014 03:45:59 +0000 (05:45 +0200)] 
dsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly.

11 years agolib: Make sure ostream.last_failed_errno is always set when stream_errno is set.
Timo Sirainen [Mon, 27 Oct 2014 21:29:39 +0000 (23:29 +0200)] 
lib: Make sure ostream.last_failed_errno is always set when stream_errno is set.

11 years agolib: o_stream_uncork() could also cause write errors. Make sure last_failed_errno...
Timo Sirainen [Mon, 27 Oct 2014 21:26:10 +0000 (23:26 +0200)] 
lib: o_stream_uncork() could also cause write errors. Make sure last_failed_errno is updated.
This caused some write errors not to be detected, such as in code like:

o_stream_cork()
o_stream_nsend(..)
o_stream_uncork()
if (o_stream_nfinish() < 0) {
  // error not detected because last_failed_errno was 0
}

11 years agolib-index: Remove assert that can never happen.
Teemu Huovila [Mon, 27 Oct 2014 20:05:27 +0000 (22:05 +0200)] 
lib-index: Remove assert that can never happen.

11 years agomaster: Don't send broken BYE notifications to log process.
Timo Sirainen [Mon, 27 Oct 2014 18:24:34 +0000 (20:24 +0200)] 
master: Don't send broken BYE notifications to log process.

11 years agolog: Don't crash if master sends a negative service_fd number.
Timo Sirainen [Mon, 27 Oct 2014 18:14:47 +0000 (20:14 +0200)] 
log: Don't crash if master sends a negative service_fd number.

11 years agomaster: Added an assert to catch duplicate fork() PIDs.
Timo Sirainen [Mon, 27 Oct 2014 18:10:19 +0000 (20:10 +0200)] 
master: Added an assert to catch duplicate fork() PIDs.
This really shouldn't be happening, but apparently it does sometimes. This
should make it easier to debug.

11 years agolib-storage: Recent change broke deleting mailboxes with LAYOUT=index
Timo Sirainen [Mon, 27 Oct 2014 15:05:52 +0000 (17:05 +0200)] 
lib-storage: Recent change broke deleting mailboxes with LAYOUT=index

11 years agolib-http: server: Fixed a hang occurring sometimes when response is sent for a reques...
Stephan Bosch [Sun, 26 Oct 2014 16:43:57 +0000 (18:43 +0200)] 
lib-http: server: Fixed a hang occurring sometimes when response is sent for a request that had payload.
Forgot to always trigger sending response when processing request payload
finishes.

11 years agolib-http: client: Removed asssert in http_client_connection_is_ready().
Stephan Bosch [Sun, 26 Oct 2014 16:43:57 +0000 (18:43 +0200)] 
lib-http: client: Removed asssert in http_client_connection_is_ready().
There is no reason why the input stream couldn't be full.

11 years agolib-http: client: The asserts recently added to http_connection_check_idle() are...
Stephan Bosch [Sun, 26 Oct 2014 16:43:57 +0000 (18:43 +0200)] 
lib-http: client: The asserts recently added to http_connection_check_idle() are bogus.

11 years agofs-posix: fs_copy() no longer fails if destination exists and FS_OPEN_MODE_REPLACE...
Timo Sirainen [Sat, 25 Oct 2014 23:03:22 +0000 (02:03 +0300)] 
fs-posix: fs_copy() no longer fails if destination exists and FS_OPEN_MODE_REPLACE is used

11 years agolib-http server: If i/ostream fails, don't return wrong "stream input size changed...
Timo Sirainen [Sat, 25 Oct 2014 22:59:05 +0000 (01:59 +0300)] 
lib-http server: If i/ostream fails, don't return wrong "stream input size changed" error.
Also handle the real case in a bit nicer way.

11 years agoman: Global options includes: Added back the newline at end of files.
Pascal Volk [Sat, 25 Oct 2014 22:18:07 +0000 (22:18 +0000)] 
man: Global options includes: Added back the newline at end of files.

They were accidentally removed in the previous commit.

11 years agoman: Global options includes: Added description of `-o setting=value'.
Pascal Volk [Sat, 25 Oct 2014 21:24:06 +0000 (21:24 +0000)] 
man: Global options includes: Added description of `-o setting=value'.

11 years agolib: If i_stream_seek() works by reading forward and read() fails, don't override...
Timo Sirainen [Sat, 25 Oct 2014 22:00:36 +0000 (01:00 +0300)] 
lib: If i_stream_seek() works by reading forward and read() fails, don't override the error message.

11 years agomaster: Don't start new processes while shutting down.
Timo Sirainen [Sat, 25 Oct 2014 21:08:05 +0000 (00:08 +0300)] 
master: Don't start new processes while shutting down.

11 years agodsync: Added debug logging for attribute importing
Timo Sirainen [Sat, 25 Oct 2014 19:53:35 +0000 (22:53 +0300)] 
dsync: Added debug logging for attribute importing

11 years agoAdded signature for changeset e8b793f2c409
Timo Sirainen [Sat, 25 Oct 2014 03:57:25 +0000 (06:57 +0300)] 
Added signature for changeset e8b793f2c409

11 years agoAdded tag 2.2.15 for changeset e8b793f2c409
Timo Sirainen [Sat, 25 Oct 2014 03:57:11 +0000 (06:57 +0300)] 
Added tag 2.2.15 for changeset e8b793f2c409

11 years agoReleased v2.2.15. 2.2.15
Timo Sirainen [Sat, 25 Oct 2014 03:57:11 +0000 (06:57 +0300)] 
Released v2.2.15.