]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
9 years agolib-http: Clarify http_client_request_*_payload() API and minor change to it
Timo Sirainen [Mon, 22 Feb 2016 18:47:37 +0000 (20:47 +0200)] 
lib-http: Clarify http_client_request_*_payload() API and minor change to it

The earlier behavior was pretty confusing, and potentially could have caused
double-freeing memory in some situations. Now it's clear that req is set to NULL
always when the request is finished, regardless of whether it has any references left.

Changed http_client_request_finish_payload() to return 0 on success instead of 1.
This could have been left alone, but it's unlikely that there is any code outside
Dovecot core that calls it and this way is cleaner.

9 years agolib-http: http_client_request_unref() now always sets *req=NULL
Timo Sirainen [Mon, 22 Feb 2016 18:34:46 +0000 (20:34 +0200)] 
lib-http: http_client_request_unref() now always sets *req=NULL

This makes its behavior consistent with other APIs in Dovecot.

Also http_client_request_finish() no longer sets req=NULL, because all of
its callers already keep a reference. Instead added an assert to make sure
the reference is there.

9 years agolib-http: http_client_connection_unref() now always sets *conn=NULL
Timo Sirainen [Mon, 22 Feb 2016 18:14:57 +0000 (20:14 +0200)] 
lib-http: http_client_connection_unref() now always sets *conn=NULL

This makes its behavior consistent with other APIs in Dovecot.

9 years agodoveadm-http: Close client input correctly
Aki Tuomi [Mon, 22 Feb 2016 18:03:44 +0000 (20:03 +0200)] 
doveadm-http: Close client input correctly

9 years agodoveadm-http: Return HTTP failure on unexpected JSON input
Timo Sirainen [Mon, 22 Feb 2016 18:00:13 +0000 (20:00 +0200)] 
doveadm-http: Return HTTP failure on unexpected JSON input

9 years agodoveadm-http: Handle invalid input better for arrays.
Timo Sirainen [Mon, 22 Feb 2016 17:56:35 +0000 (19:56 +0200)] 
doveadm-http: Handle invalid input better for arrays.

9 years agodoveadm-http: Handle istreams correctly
Timo Sirainen [Sat, 20 Feb 2016 21:16:52 +0000 (23:16 +0200)] 
doveadm-http: Handle istreams correctly

Based on patch by Aki Tuomi

9 years agodoveadm-save: Use ver2 command structure
Aki Tuomi [Wed, 17 Feb 2016 08:24:24 +0000 (10:24 +0200)] 
doveadm-save: Use ver2 command structure

9 years agodoveadm: Added support for "file" parameters
Timo Sirainen [Mon, 22 Feb 2016 16:55:03 +0000 (18:55 +0200)] 
doveadm: Added support for "file" parameters

9 years agodoveadm: Fixed memory leak at deinit
Timo Sirainen [Mon, 22 Feb 2016 16:46:29 +0000 (18:46 +0200)] 
doveadm: Fixed memory leak at deinit

9 years agodoveadm: Fixed double-free when using -F parameter
Timo Sirainen [Mon, 22 Feb 2016 16:42:42 +0000 (18:42 +0200)] 
doveadm: Fixed double-free when using -F parameter

9 years agodoveadm: Fixed memory leaks when ver2 command parsing fails with invalid parameter.
Timo Sirainen [Mon, 22 Feb 2016 16:42:10 +0000 (18:42 +0200)] 
doveadm: Fixed memory leaks when ver2 command parsing fails with invalid parameter.

9 years agodoveadm-mail: Fixed common parameters to use correct names as in DOVEADM_CMD_MAIL_COMMON
Aki Tuomi [Mon, 22 Feb 2016 11:59:14 +0000 (13:59 +0200)] 
doveadm-mail: Fixed common parameters to use correct names as in DOVEADM_CMD_MAIL_COMMON

9 years agodoveadm-fetch: Use ver2 structures
Aki Tuomi [Wed, 17 Feb 2016 07:19:01 +0000 (09:19 +0200)] 
doveadm-fetch: Use ver2 structures

9 years agodoveadm: Add kludge to support field array to fieldstr conversion
Aki Tuomi [Mon, 22 Feb 2016 16:20:59 +0000 (18:20 +0200)] 
doveadm: Add kludge to support field array to fieldstr conversion

9 years agodoveadm-stats: Use ver2 structures
Aki Tuomi [Mon, 15 Feb 2016 13:14:25 +0000 (15:14 +0200)] 
doveadm-stats: Use ver2 structures

9 years agolib-index: If mail_transaction_log_lock_head() locking took long, include reason...
Timo Sirainen [Mon, 22 Feb 2016 14:12:16 +0000 (16:12 +0200)] 
lib-index: If mail_transaction_log_lock_head() locking took long, include reason string in warning

9 years agomdbox: Use mail_index_sync_set_reason() to give better reason messages for lock wait...
Timo Sirainen [Mon, 22 Feb 2016 09:47:16 +0000 (11:47 +0200)] 
mdbox: Use mail_index_sync_set_reason() to give better reason messages for lock wait warnings.

9 years agolib-index: Added mail_index_sync_set_reason() to improve lock wait log warnings
Timo Sirainen [Mon, 22 Feb 2016 09:46:13 +0000 (11:46 +0200)] 
lib-index: Added mail_index_sync_set_reason() to improve lock wait log warnings

9 years agolib-index: Small improvements to logging the reason for long transaction log lock...
Timo Sirainen [Mon, 22 Feb 2016 09:15:52 +0000 (11:15 +0200)] 
lib-index: Small improvements to logging the reason for long transaction log lock waits

9 years agodovecot.service: Fixed PIDFile path - removed extra /dovecot/ directory from the...
Timo Sirainen [Mon, 22 Feb 2016 08:25:56 +0000 (10:25 +0200)] 
dovecot.service: Fixed PIDFile path - removed extra /dovecot/ directory from the middle.

9 years agolib: mempool-alloconly unit test improvement: verify that data stack isn't used by...
Timo Sirainen [Sun, 21 Feb 2016 17:01:31 +0000 (19:01 +0200)] 
lib: mempool-alloconly unit test improvement: verify that data stack isn't used by p_malloc()

9 years agolib: Minor code cleanup to mempool-alloconly unit test - use test_begin/assert/end()
Timo Sirainen [Sun, 21 Feb 2016 16:58:50 +0000 (18:58 +0200)] 
lib: Minor code cleanup to mempool-alloconly unit test - use test_begin/assert/end()

9 years agodoveadm-http: Correctly initialize parameters
Aki Tuomi [Sun, 21 Feb 2016 16:38:24 +0000 (18:38 +0200)] 
doveadm-http: Correctly initialize parameters

9 years agodoveadm: Fixed using array type parameters.
Aki Tuomi [Sun, 21 Feb 2016 16:37:24 +0000 (18:37 +0200)] 
doveadm: Fixed using array type parameters.

9 years agodoveadm: Fixed assert-crash when command with CMD_PARAM_FLAG_DO_NOT_EXPOSE was used.
Aki Tuomi [Sun, 21 Feb 2016 16:36:19 +0000 (18:36 +0200)] 
doveadm: Fixed assert-crash when command with CMD_PARAM_FLAG_DO_NOT_EXPOSE was used.

9 years agodoveadm: Fixed support for --long-option arguments
Aki Tuomi [Sun, 21 Feb 2016 16:35:03 +0000 (18:35 +0200)] 
doveadm: Fixed support for --long-option arguments

9 years agolib: Added [pt]_array_const_string_join()
Timo Sirainen [Sun, 21 Feb 2016 16:32:50 +0000 (18:32 +0200)] 
lib: Added [pt]_array_const_string_join()

Based on patch by Aki Tuomi

9 years agolib: Move code from t_strarray_join() into a more generic p_strarray_join_n()
Timo Sirainen [Sun, 21 Feb 2016 16:32:03 +0000 (18:32 +0200)] 
lib: Move code from t_strarray_join() into a more generic p_strarray_join_n()

9 years agolib: Added unit test for t_strarray_join()
Timo Sirainen [Sun, 21 Feb 2016 16:31:12 +0000 (18:31 +0200)] 
lib: Added unit test for t_strarray_join()

9 years agoquots-fs: Fixed compiling with HP/UX and Solaris
Timo Sirainen [Sun, 21 Feb 2016 15:44:38 +0000 (17:44 +0200)] 
quots-fs: Fixed compiling with HP/UX and Solaris

9 years agodoveadm: Compiler warning fix.
Timo Sirainen [Sun, 21 Feb 2016 15:44:07 +0000 (17:44 +0200)] 
doveadm: Compiler warning fix.

9 years agolib-index: mail_index_sync_next() didn't always return expunges sorted
Timo Sirainen [Sun, 21 Feb 2016 01:40:48 +0000 (03:40 +0200)] 
lib-index: mail_index_sync_next() didn't always return expunges sorted

Maildir and mbox formats were using index_sync_changes_read(), which assumed that
they were sorted. So some of the intended expunges weren't actually always being
done. This mainly affected when expunges were being done simultaneously by multiple
processes or by pipelined commands. For example:

printf "a select inbox\nb uid move 2 Trash\nc uid move 1 Trash\nd logout\n" | ./imap

9 years agoimap-hibernate: send connect/disconnect events to anvil
manuel [Tue, 16 Feb 2016 17:05:59 +0000 (18:05 +0100)] 
imap-hibernate: send connect/disconnect events to anvil

make doveadm who + mail_max_userip_connections work with
hibernated connections.

9 years agolib: json_parse_next_stream() wrongly returned -1 even when a stream was returned.
Timo Sirainen [Sat, 20 Feb 2016 21:32:59 +0000 (23:32 +0200)] 
lib: json_parse_next_stream() wrongly returned -1 even when a stream was returned.

9 years agouri-util: Fixed assertion failure for invalid character in path segment.
Stephan Bosch [Sat, 20 Feb 2016 17:47:58 +0000 (19:47 +0200)] 
uri-util: Fixed assertion failure for invalid character in path segment.

9 years agolib-http: server: Implicitly free a request response structure when a new (failure...
Stephan Bosch [Sat, 20 Feb 2016 17:35:12 +0000 (19:35 +0200)] 
lib-http: server: Implicitly free a request response structure when a new (failure) response is started.

9 years agodoveadm: Fix for previous attempt to make static analyzer happier.
Timo Sirainen [Sat, 20 Feb 2016 11:40:18 +0000 (13:40 +0200)] 
doveadm: Fix for previous attempt to make static analyzer happier.

9 years agodoveadm: Make static analyzer happier - cptr can't be NULL here.
Timo Sirainen [Fri, 19 Feb 2016 18:20:43 +0000 (20:20 +0200)] 
doveadm: Make static analyzer happier - cptr can't be NULL here.

9 years agodoveadm: Use char type for short options instead of a string.
Timo Sirainen [Fri, 19 Feb 2016 14:36:00 +0000 (16:36 +0200)] 
doveadm: Use char type for short options instead of a string.

The ":" = "has parameters" can be determined from the type.
Also removed "?" checks since it wasn't actually used.

9 years agodoveadm: Remove CMD_PARAM_NONE type, since it already defaulted to same as CMD_PARAM_BOOL
Timo Sirainen [Fri, 19 Feb 2016 14:34:53 +0000 (16:34 +0200)] 
doveadm: Remove CMD_PARAM_NONE type, since it already defaulted to same as CMD_PARAM_BOOL

9 years agolib-index: Fixed mail_index_lookup_ext_full()'s map_r with transaction-view.
Timo Sirainen [Fri, 19 Feb 2016 17:11:53 +0000 (19:11 +0200)] 
lib-index: Fixed mail_index_lookup_ext_full()'s map_r with transaction-view.

9 years agolib-index: Code cleanup - moved code to tview_lookup_ext_update()
Timo Sirainen [Fri, 19 Feb 2016 17:08:43 +0000 (19:08 +0200)] 
lib-index: Code cleanup - moved code to tview_lookup_ext_update()

No functional changes.

9 years agoMakefile: Added missing client-connection-private.h
Timo Sirainen [Fri, 19 Feb 2016 14:13:51 +0000 (16:13 +0200)] 
Makefile: Added missing client-connection-private.h

9 years agodovecot.service: Fixed PIDFile path
Timo Sirainen [Fri, 19 Feb 2016 14:11:58 +0000 (16:11 +0200)] 
dovecot.service: Fixed PIDFile path

9 years agodoveadm: Use correct uoff_t type for printf
Timo Sirainen [Fri, 19 Feb 2016 14:03:30 +0000 (16:03 +0200)] 
doveadm: Use correct uoff_t type for printf

9 years agodovecot.service: Disabled ProtectSystem=full for now
Timo Sirainen [Fri, 19 Feb 2016 13:39:35 +0000 (15:39 +0200)] 
dovecot.service: Disabled ProtectSystem=full for now

It's not supported by RHEL7's systemd.

9 years agodoveadm: Use ver2 structures for all "doveadm mailbox *" commands.
Aki Tuomi [Fri, 19 Feb 2016 13:03:51 +0000 (15:03 +0200)] 
doveadm: Use ver2 structures for all "doveadm mailbox *" commands.

9 years agodoveadm: Use ver2 structures for stop & reload.
Aki Tuomi [Fri, 19 Feb 2016 13:02:56 +0000 (15:02 +0200)] 
doveadm: Use ver2 structures for stop & reload.

9 years agodoveadm: Implement HTTP server API, slightly based on JMAP API
Aki Tuomi [Fri, 19 Feb 2016 12:58:41 +0000 (14:58 +0200)] 
doveadm: Implement HTTP server API, slightly based on JMAP API

9 years agodoveadm: Code cleanup - moved code to client_connection_init()
Timo Sirainen [Fri, 19 Feb 2016 12:40:59 +0000 (14:40 +0200)] 
doveadm: Code cleanup - moved code to client_connection_init()

No functional changes.

9 years agodoveadm: Add infrastructure for doveadm_cmd_ver2
Aki Tuomi [Mon, 15 Feb 2016 12:02:19 +0000 (14:02 +0200)] 
doveadm: Add infrastructure for doveadm_cmd_ver2

Version 2 commands have named parameters, which also have types. This is
especially useful for reading input from HTTP/JSON API. This also simplifies
the parameter parsing for command line input.

For v2.3 the plan is to replace all the old doveadm_cmds with this new
version and get rid of the _ver2 suffixes. But for now we'll have two
versions of commands.

For backwards compatibility with old commands we have also implemented
wrappers so that v2 structs can be defined and there's a function to convert
the named parameters to old v1 style args[] string, so the old command
handlers can still be run. This will also be removed in v2.3.

This change also adds requirement for getopt_long(). It's already available
in all the Linuxes and BSDs, so this shouldn't be too big of a requirement.
Other systems can install it from an external library.

9 years agodoveadm: Add unit tests for i_strccdascmp
Aki Tuomi [Thu, 18 Feb 2016 13:49:03 +0000 (15:49 +0200)] 
doveadm: Add unit tests for i_strccdascmp

9 years agodoveadm: Add i_strccdascmp()
Aki Tuomi [Thu, 18 Feb 2016 13:48:21 +0000 (15:48 +0200)] 
doveadm: Add i_strccdascmp()

This comparator considers camel case==camel-case==camelCase. This
is to help with HTTP API to make it more flexible.

9 years agodoveadm: If user lookup fails, log an error but don't kill the process.
Timo Sirainen [Fri, 19 Feb 2016 12:08:40 +0000 (14:08 +0200)] 
doveadm: If user lookup fails, log an error but don't kill the process.

9 years agodoveadm: Code cleanup - Removed passing through unnecessary argv parameter
Timo Sirainen [Fri, 19 Feb 2016 12:05:13 +0000 (14:05 +0200)] 
doveadm: Code cleanup - Removed passing through unnecessary argv parameter

9 years agodoveadm: Code cleanup - move code to doveadm_mail_cmd_exec()
Aki Tuomi [Thu, 18 Feb 2016 07:27:10 +0000 (09:27 +0200)] 
doveadm: Code cleanup - move code to doveadm_mail_cmd_exec()

No functional changes.

9 years agolib-http: Add accessors for some response details
Aki Tuomi [Mon, 15 Feb 2016 11:55:41 +0000 (13:55 +0200)] 
lib-http: Add accessors for some response details

9 years agodovecot: improve systemd support
Aki Tuomi [Thu, 18 Feb 2016 17:27:13 +0000 (19:27 +0200)] 
dovecot: improve systemd support

9 years agofts: When searching data headers, don't expand search keys to all languages.
Timo Sirainen [Tue, 16 Feb 2016 16:34:19 +0000 (18:34 +0200)] 
fts: When searching data headers, don't expand search keys to all languages.

For example "SEARCH HEADER Message-Id foo@example.com" works better the
less expansion there is for "foo@example.com".

9 years agofts: Code cleanup - moved fts_header_has_language() to a global function
Timo Sirainen [Tue, 16 Feb 2016 16:33:46 +0000 (18:33 +0200)] 
fts: Code cleanup - moved fts_header_has_language() to a global function

9 years agolib-storage: Avoid duplicate work when a search query has multiple header/body keys.
Timo Sirainen [Tue, 16 Feb 2016 15:50:53 +0000 (17:50 +0200)] 
lib-storage: Avoid duplicate work when a search query has multiple header/body keys.

9 years agolib-mail: Added message_search_more_get_decoded()
Timo Sirainen [Tue, 16 Feb 2016 15:48:53 +0000 (17:48 +0200)] 
lib-mail: Added message_search_more_get_decoded()

9 years agoauth: Moved all passdb/userdb template handling to auth_passdb/userdb.
Timo Sirainen [Thu, 11 Feb 2016 11:25:28 +0000 (13:25 +0200)] 
auth: Moved all passdb/userdb template handling to auth_passdb/userdb.

This is because passdb_find() and userdb_find() attempts to avoid
duplicating passdbs and userdbs when they have identical driver+args.
This deduplication is useful when using multiple protocol { .. } blocks
that duplicate some passdb/userdb backends. For example we might want
to have only a single SQL connection regardless of how the protocol-specific
passdbs and userdbs are being set up. All the default/override_fields and
result_* settings aren't relevant to the passdb/userdb backends, so removing
them will again allow the deduplication to work correctly.

9 years agoauth: Moved cache_key from passdb_module to auth_passdb.
Timo Sirainen [Thu, 11 Feb 2016 11:21:18 +0000 (13:21 +0200)] 
auth: Moved cache_key from passdb_module to auth_passdb.

This is in preparation for the next changeset, which moves
default/override_fields also to auth_passdb.

9 years agolib-http: server: Error handling fix - avoid potential crash when request is already...
Timo Sirainen [Thu, 11 Feb 2016 11:58:54 +0000 (13:58 +0200)] 
lib-http: server: Error handling fix - avoid potential crash when request is already gone

9 years agologin-proxy: Preserve client's istream even after login.
Timo Sirainen [Wed, 10 Feb 2016 20:02:50 +0000 (22:02 +0200)] 
login-proxy: Preserve client's istream even after login.

This eventually allows things like using lib-ssl-iostream, moving IMAP
COMPRESS handling to login process, etc.

9 years agolib: Added i_stream_set_persistent_buffers()
Timo Sirainen [Wed, 10 Feb 2016 20:02:15 +0000 (22:02 +0200)] 
lib: Added i_stream_set_persistent_buffers()

9 years agolib: Ignore ENOSYS errors from madvise() calls.
Timo Sirainen [Wed, 10 Feb 2016 17:30:42 +0000 (19:30 +0200)] 
lib: Ignore ENOSYS errors from madvise() calls.

For example Raspberry Pi kernels have removed this. We'll wrap all the
madvise() calls with my_madvise() to avoid extra checks all over the place.

9 years agolib-http: Created test program that tests payload exchange between client and server...
Stephan Bosch [Wed, 10 Feb 2016 22:39:25 +0000 (23:39 +0100)] 
lib-http: Created test program that tests payload exchange between client and server with various configurations.

It recursively uses all files in the current directory as payload.
It is currenrly not part of `make check', because it is a stress-testing tool that can run for a long time.

9 years agolib-http: server: Implemented blocking request input stream.
Stephan Bosch [Wed, 10 Feb 2016 21:32:46 +0000 (22:32 +0100)] 
lib-http: server: Implemented blocking request input stream.

9 years agolib-http: server: Implemented blocking response output stream.
Stephan Bosch [Wed, 10 Feb 2016 21:30:22 +0000 (22:30 +0100)] 
lib-http: server: Implemented blocking response output stream.

9 years agolib-http: server: Created blocking http_server_response_send_payload() API that close...
Stephan Bosch [Wed, 10 Feb 2016 21:25:07 +0000 (22:25 +0100)] 
lib-http: server: Created blocking http_server_response_send_payload() API that closely mimics the client equivalent.

It allows sending response payload in several chunks in a blocking fashion.

9 years agolib-http: server: Added some request debug logging.
Stephan Bosch [Wed, 10 Feb 2016 21:19:27 +0000 (22:19 +0100)] 
lib-http: server: Added some request debug logging.

9 years agolib-http: request parser: Added support for explicitly finishing payload of previous...
Stephan Bosch [Wed, 10 Feb 2016 21:17:07 +0000 (22:17 +0100)] 
lib-http: request parser: Added support for explicitly finishing payload of previous request.

9 years agolib-sql: Allow port to be configured for Cassandra cluster
Michael M Slusarz [Thu, 11 Feb 2016 05:15:12 +0000 (22:15 -0700)] 
lib-sql: Allow port to be configured for Cassandra cluster

9 years agolib-storage: Added missing %{userdb:*:default} handling
Timo Sirainen [Wed, 10 Feb 2016 17:08:11 +0000 (19:08 +0200)] 
lib-storage: Added missing %{userdb:*:default} handling

9 years agolib-storage: Deduplicate %{userdb:*} handling for mail_user and mail_storage_service_user
Timo Sirainen [Wed, 10 Feb 2016 17:06:14 +0000 (19:06 +0200)] 
lib-storage: Deduplicate %{userdb:*} handling for mail_user and mail_storage_service_user

9 years ago*-login: Pass client_auth_reply to client.auth_result() whenever possible.
Timo Sirainen [Wed, 10 Feb 2016 16:27:52 +0000 (18:27 +0200)] 
*-login: Pass client_auth_reply to client.auth_result() whenever possible.

This didn't matter normally, but some plugins might care about it.

9 years agoauth: Added "fail" parameter, which fails the passdb lookup.
Timo Sirainen [Wed, 10 Feb 2016 14:54:43 +0000 (16:54 +0200)] 
auth: Added "fail" parameter, which fails the passdb lookup.

9 years agoauth: Don't revert any previous failed=TRUE status if allow_nets check succeeds
Timo Sirainen [Wed, 10 Feb 2016 14:51:42 +0000 (16:51 +0200)] 
auth: Don't revert any previous failed=TRUE status if allow_nets check succeeds

9 years agoMakefile: Added missing ostream-escaped.h
Timo Sirainen [Wed, 10 Feb 2016 13:50:48 +0000 (15:50 +0200)] 
Makefile: Added missing ostream-escaped.h

9 years agolib-http: Fixed test-http-request-parser unit test
Timo Sirainen [Wed, 10 Feb 2016 13:39:45 +0000 (15:39 +0200)] 
lib-http: Fixed test-http-request-parser unit test

Patch by Stephan Bosch

9 years agolib: Add ostream-escaped filter
Aki Tuomi [Mon, 8 Feb 2016 14:22:34 +0000 (16:22 +0200)] 
lib: Add ostream-escaped filter

9 years agodoveadm-print: Fix doveadm_print_json_print_stream
Aki Tuomi [Tue, 9 Feb 2016 08:03:56 +0000 (10:03 +0200)] 
doveadm-print: Fix doveadm_print_json_print_stream

9 years agolib-http: message parser: Made sure that payload stream is always destroyed (hence...
Stephan Bosch [Mon, 8 Feb 2016 21:57:13 +0000 (22:57 +0100)] 
lib-http: message parser: Made sure that payload stream is always destroyed (hence closed) when the next request is to be parsed.

This makes sure that the connection input is always at the correct position
for the next request. Remaining references to the payload stream could
theoretically mess this up.

9 years agolib-http: server: Make sure that any pending request is aborted and destroyed before...
Stephan Bosch [Mon, 8 Feb 2016 21:55:09 +0000 (22:55 +0100)] 
lib-http: server: Make sure that any pending request is aborted and destroyed before connection FDs are closed.

This way, any payload io struct created from the request callback can be
freed before the associated FD becomes invalid. This would cause an assert
failure otherwise.

9 years agolib-http: server: Sometimes a success response was sent before all payload from the...
Stephan Bosch [Mon, 8 Feb 2016 21:53:50 +0000 (22:53 +0100)] 
lib-http: server: Sometimes a success response was sent before all payload from the client request was read.

This can confuse clients, so this is supposed to be prevented.

9 years agolib-http: server: Fixed memory problem reported by Valgrind, which was caused by...
Stephan Bosch [Mon, 8 Feb 2016 21:52:38 +0000 (22:52 +0100)] 
lib-http: server: Fixed memory problem reported by Valgrind, which was caused by the request being freed too early while sending a response.

Fixed by referencing the request while it is being sent.

9 years agolib-http: server: Fixed datastack framing problem in error handling of response sending.
Stephan Bosch [Mon, 8 Feb 2016 21:51:14 +0000 (22:51 +0100)] 
lib-http: server: Fixed datastack framing problem in error handling of response sending.

The returned error string crossed a data stack frame, which wasn't handled correctly.

9 years agolib-http: request parser: Made sure that partially parsed requests never have stale...
Stephan Bosch [Mon, 8 Feb 2016 21:49:28 +0000 (22:49 +0100)] 
lib-http: request parser: Made sure that partially parsed requests never have stale string values.

Due to the fact that we assign method and target fields early for proper
error messages, stale fields from previous requests could have ended up in a
partially parsed new request.

9 years agolib-http: client: Fixed pipelining bug: client sometimes sent new request while still...
Stephan Bosch [Mon, 8 Feb 2016 21:47:30 +0000 (22:47 +0100)] 
lib-http: client: Fixed pipelining bug: client sometimes sent new request while still waiting for 100-continue.

9 years agolib-http: client: Make sure that any pending request is aborted and destroyed before...
Stephan Bosch [Mon, 8 Feb 2016 21:45:54 +0000 (22:45 +0100)] 
lib-http: client: Make sure that any pending request is aborted and destroyed before connection FDs are closed.

This way, any payload io struct created from the response callback can be freed before the associated FD becomes invalid.
This would cause an assert failure otherwise.

9 years agolib-http: Forgot to assign pointer parameter to NULL in request/response parser deini...
Stephan Bosch [Mon, 8 Feb 2016 21:44:52 +0000 (22:44 +0100)] 
lib-http: Forgot to assign pointer parameter to NULL in request/response parser deinit functions.

9 years agoMakefile: Added missing auth-request-stats.h
Timo Sirainen [Tue, 9 Feb 2016 08:34:29 +0000 (10:34 +0200)] 
Makefile: Added missing auth-request-stats.h

9 years agodoveadm auth test/login: Added -M <master user> parameter.
Timo Sirainen [Mon, 8 Feb 2016 16:43:02 +0000 (18:43 +0200)] 
doveadm auth test/login: Added -M <master user> parameter.

9 years agostats: Minor error message cleanup.
Timo Sirainen [Mon, 8 Feb 2016 14:21:40 +0000 (16:21 +0200)] 
stats: Minor error message cleanup.

FIFO stats can come from auth also, not just mail server.

9 years agoauth: If auth_stats=yes, send statistics to stats process.
Timo Sirainen [Mon, 8 Feb 2016 14:20:46 +0000 (16:20 +0200)] 
auth: If auth_stats=yes, send statistics to stats process.

9 years agoman: document dsync -m and -R options
Michael M Slusarz [Fri, 5 Feb 2016 18:36:32 +0000 (11:36 -0700)] 
man: document dsync -m and -R options

9 years agolib-master: Fail if syslog_facility's value is unknown.
Timo Sirainen [Mon, 8 Feb 2016 10:20:34 +0000 (12:20 +0200)] 
lib-master: Fail if syslog_facility's value is unknown.