]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
5 years agolib-imap-client: test-imapc-client - Move client functions.
Stephan Bosch [Sat, 11 Apr 2020 07:30:29 +0000 (09:30 +0200)] 
lib-imap-client: test-imapc-client - Move client functions.

5 years agolib-imap-client: test-imapc-client - Move server functions.
Stephan Bosch [Mon, 13 Apr 2020 16:49:12 +0000 (18:49 +0200)] 
lib-imap-client: test-imapc-client - Move server functions.

5 years agolib-imap-client: test-imapc-client - Move test_open_server_fd().
Stephan Bosch [Sat, 11 Apr 2020 07:27:30 +0000 (09:27 +0200)] 
lib-imap-client: test-imapc-client - Move test_open_server_fd().

5 years agolib-imap-client: Reformat test-imapc-client.c.
Stephan Bosch [Sat, 11 Apr 2020 11:27:58 +0000 (13:27 +0200)] 
lib-imap-client: Reformat test-imapc-client.c.

5 years agolib-imap-client: Remove unnecessary "Authentication failed: disconnected" errors
Timo Sirainen [Sun, 12 Apr 2020 08:51:31 +0000 (11:51 +0300)] 
lib-imap-client: Remove unnecessary "Authentication failed: disconnected" errors

If connection failed during login, there were always two log lines logged.
The first line is enough.

5 years agolib-imap-client: test-imapc-client - Client now sends LOGOUT and server expects it
Timo Sirainen [Sun, 12 Apr 2020 08:34:14 +0000 (11:34 +0300)] 
lib-imap-client: test-imapc-client - Client now sends LOGOUT and server expects it

5 years agolib-imap-client: test-imapc-client - login_hangs: Client stopped too early
Timo Sirainen [Sun, 12 Apr 2020 08:30:28 +0000 (11:30 +0300)] 
lib-imap-client: test-imapc-client - login_hangs: Client stopped too early

5 years agolib-imap-client: test-imapc-client - login_hangs: Server checked wrong connection...
Timo Sirainen [Sun, 12 Apr 2020 08:29:06 +0000 (11:29 +0300)] 
lib-imap-client: test-imapc-client - login_hangs: Server checked wrong connection's input

5 years agomaster: test-master-login-auth - Use the new sub-process test API.
Stephan Bosch [Fri, 10 Apr 2020 22:47:21 +0000 (00:47 +0200)] 
master: test-master-login-auth - Use the new sub-process test API.

This makes an effort to terminate server processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agomaster: test-master-login-auth - Split off test_run_server/client() from test_run_cli...
Stephan Bosch [Sat, 11 Apr 2020 11:51:49 +0000 (13:51 +0200)] 
master: test-master-login-auth - Split off test_run_server/client() from test_run_client_server().

5 years agomaster: test-master-login-auth - Rename test_server_kill() to test_servers_kill_forced().
Stephan Bosch [Fri, 10 Apr 2020 22:40:19 +0000 (00:40 +0200)] 
master: test-master-login-auth - Rename test_server_kill() to test_servers_kill_forced().

5 years agomaster: test-master-login-auth - Move global initialization to main_init/deinit().
Stephan Bosch [Fri, 10 Apr 2020 22:38:26 +0000 (00:38 +0200)] 
master: test-master-login-auth - Move global initialization to main_init/deinit().

5 years agomaster: test-master-login-auth - Avoid using sleep()/usleep().
Stephan Bosch [Fri, 10 Apr 2020 22:32:25 +0000 (00:32 +0200)] 
master: test-master-login-auth - Avoid using sleep()/usleep().

5 years agomaster: test-master-login-auth - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 16:41:37 +0000 (18:41 +0200)] 
master: test-master-login-auth - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agomaster: test-master-login-auth - Ignore SIGPIPE.
Stephan Bosch [Fri, 10 Apr 2020 22:29:42 +0000 (00:29 +0200)] 
master: test-master-login-auth - Ignore SIGPIPE.

5 years agomaster: test-master-login-auth - Don't ignore SIGCHLD.
Stephan Bosch [Mon, 13 Apr 2020 16:33:08 +0000 (18:33 +0200)] 
master: test-master-login-auth - Don't ignore SIGCHLD.

5 years agomaster: test-master-login-auth - Add log prefixes to distinguish client and server...
Stephan Bosch [Fri, 10 Apr 2020 22:26:25 +0000 (00:26 +0200)] 
master: test-master-login-auth - Add log prefixes to distinguish client and server debug messages.

5 years agomaster: test-auth-master - Use the new sub-process test API.
Stephan Bosch [Fri, 10 Apr 2020 22:18:08 +0000 (00:18 +0200)] 
master: test-auth-master - Use the new sub-process test API.

This makes an effort to terminate server processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agomaster: test-auth-master - Split off test_run_server/client() from test_run_client_se...
Stephan Bosch [Fri, 10 Apr 2020 22:11:09 +0000 (00:11 +0200)] 
master: test-auth-master - Split off test_run_server/client() from test_run_client_server().

5 years agomaster: test-auth-master - Rename test_server_kill() to test_servers_kill_forced().
Stephan Bosch [Fri, 10 Apr 2020 22:04:32 +0000 (00:04 +0200)] 
master: test-auth-master - Rename test_server_kill() to test_servers_kill_forced().

5 years agomaster: test-auth-master - Move global initialization to main_init/deinit().
Stephan Bosch [Fri, 10 Apr 2020 22:02:17 +0000 (00:02 +0200)] 
master: test-auth-master - Move global initialization to main_init/deinit().

5 years agomaster: test-auth-master - Avoid using sleep()/usleep().
Stephan Bosch [Fri, 10 Apr 2020 21:56:56 +0000 (23:56 +0200)] 
master: test-auth-master - Avoid using sleep()/usleep().

5 years agomaster: test-auth-master - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 16:39:56 +0000 (18:39 +0200)] 
master: test-auth-master - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agomaster: test-auth-master - Ignore SIGPIPE.
Stephan Bosch [Fri, 10 Apr 2020 21:54:29 +0000 (23:54 +0200)] 
master: test-auth-master - Ignore SIGPIPE.

5 years agomaster: test-auth-master - Don't ignore SIGCHLD.
Stephan Bosch [Mon, 13 Apr 2020 16:30:54 +0000 (18:30 +0200)] 
master: test-auth-master - Don't ignore SIGCHLD.

5 years agomaster: test-auth-master - Add log prefixes to distinguish client and server debug...
Stephan Bosch [Fri, 10 Apr 2020 21:52:20 +0000 (23:52 +0200)] 
master: test-auth-master - Add log prefixes to distinguish client and server debug messages.

5 years agomaster: test-auth-client - Use the new sub-process test API.
Stephan Bosch [Fri, 10 Apr 2020 21:43:07 +0000 (23:43 +0200)] 
master: test-auth-client - Use the new sub-process test API.

This makes an effort to terminate server processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agomaster: test-auth-client - Split off test_run_server/client() from test_run_client_se...
Stephan Bosch [Fri, 10 Apr 2020 20:17:05 +0000 (22:17 +0200)] 
master: test-auth-client - Split off test_run_server/client() from test_run_client_server().

5 years agomaster: test-auth-client - Rename test_server_kill() to test_servers_kill_forced().
Stephan Bosch [Fri, 10 Apr 2020 20:07:48 +0000 (22:07 +0200)] 
master: test-auth-client - Rename test_server_kill() to test_servers_kill_forced().

5 years agomaster: test-auth-client - Move global initialization to main_init/deinit().
Stephan Bosch [Fri, 10 Apr 2020 19:59:47 +0000 (21:59 +0200)] 
master: test-auth-client - Move global initialization to main_init/deinit().

5 years agomaster: test-auth-client - Avoid using sleep()/usleep().
Stephan Bosch [Fri, 10 Apr 2020 19:53:06 +0000 (21:53 +0200)] 
master: test-auth-client - Avoid using sleep()/usleep().

5 years agomaster: test-auth-client - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 16:37:55 +0000 (18:37 +0200)] 
master: test-auth-client - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agomaster: test-auth-client - Ignore SIGPIPE.
Stephan Bosch [Fri, 10 Apr 2020 19:50:16 +0000 (21:50 +0200)] 
master: test-auth-client - Ignore SIGPIPE.

5 years agomaster: test-auth-client - Don't ignore SIGCHLD.
Stephan Bosch [Mon, 13 Apr 2020 16:28:19 +0000 (18:28 +0200)] 
master: test-auth-client - Don't ignore SIGCHLD.

5 years agomaster: test-auth-client - Add log prefixes to distinguish client and server debug...
Stephan Bosch [Fri, 10 Apr 2020 19:48:11 +0000 (21:48 +0200)] 
master: test-auth-client - Add log prefixes to distinguish client and server debug messages.

5 years agomaster: Reformat test-master-login-auth.c.
Stephan Bosch [Sat, 11 Apr 2020 10:58:10 +0000 (12:58 +0200)] 
master: Reformat test-master-login-auth.c.

5 years agomaster: Reformat test-auth-master.c.
Stephan Bosch [Sat, 11 Apr 2020 10:53:40 +0000 (12:53 +0200)] 
master: Reformat test-auth-master.c.

5 years agomaster: Reformat test-auth-client.c.
Stephan Bosch [Sat, 11 Apr 2020 10:42:58 +0000 (12:42 +0200)] 
master: Reformat test-auth-client.c.

5 years agolib-smtp: test-smtp-submit - Use the new sub-process test API.
Stephan Bosch [Thu, 14 May 2020 14:05:00 +0000 (16:05 +0200)] 
lib-smtp: test-smtp-submit - Use the new sub-process test API.

This makes an effort to terminate server processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agolib-smtp: test-smtp-submit - Split off test_run_server/client() from test_run_client_...
Stephan Bosch [Thu, 9 Apr 2020 14:47:45 +0000 (16:47 +0200)] 
lib-smtp: test-smtp-submit - Split off test_run_server/client() from test_run_client_server().

5 years agolib-smtp: test-smtp-submit - Rename test_servers_kill_all() to test_servers_kill_forc...
Stephan Bosch [Thu, 9 Apr 2020 09:05:10 +0000 (11:05 +0200)] 
lib-smtp: test-smtp-submit - Rename test_servers_kill_all() to test_servers_kill_forced().

5 years agolib-smtp: test-smtp-submit - Move global initialization to main_init/deinit().
Stephan Bosch [Thu, 9 Apr 2020 08:53:40 +0000 (10:53 +0200)] 
lib-smtp: test-smtp-submit - Move global initialization to main_init/deinit().

5 years agolib-smtp: test-smtp-submit - Avoid using sleep().
Stephan Bosch [Thu, 9 Apr 2020 08:56:07 +0000 (10:56 +0200)] 
lib-smtp: test-smtp-submit - Avoid using sleep().

5 years agolib-smtp: test-smtp-submit - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 15:52:09 +0000 (17:52 +0200)] 
lib-smtp: test-smtp-submit - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agolib-smtp: test-smtp-submit - Ignore SIGPIPE.
Stephan Bosch [Thu, 9 Apr 2020 08:40:23 +0000 (10:40 +0200)] 
lib-smtp: test-smtp-submit - Ignore SIGPIPE.

5 years agolib-smtp: test-smtp-submit - Don't ignore SIGCHLD.
Stephan Bosch [Mon, 13 Apr 2020 15:45:55 +0000 (17:45 +0200)] 
lib-smtp: test-smtp-submit - Don't ignore SIGCHLD.

5 years agolib-smtp: test-smtp-submit - Add log prefixes to distinguish client and server debug...
Stephan Bosch [Thu, 9 Apr 2020 08:37:28 +0000 (10:37 +0200)] 
lib-smtp: test-smtp-submit - Add log prefixes to distinguish client and server debug messages.

5 years agolib-smtp: test-smtp-server-errors - Use the new sub-process test API.
Stephan Bosch [Wed, 8 Apr 2020 22:57:15 +0000 (00:57 +0200)] 
lib-smtp: test-smtp-server-errors - Use the new sub-process test API.

This makes an effort to terminate client processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agolib-smtp: test-smtp-server-errors - Split off test_run_client/server() from test_run_...
Stephan Bosch [Wed, 8 Apr 2020 22:30:11 +0000 (00:30 +0200)] 
lib-smtp: test-smtp-server-errors - Split off test_run_client/server() from test_run_client_server().

5 years agolib-smtp: test-smtp-server-errors - Rename test_clients_kill_all() to test_clients_ki...
Stephan Bosch [Wed, 8 Apr 2020 22:23:46 +0000 (00:23 +0200)] 
lib-smtp: test-smtp-server-errors - Rename test_clients_kill_all() to test_clients_kill_forced().

5 years agolib-smtp: test-smtp-server-errors - Move global initialization to main_init/deinit().
Stephan Bosch [Thu, 9 Apr 2020 08:50:03 +0000 (10:50 +0200)] 
lib-smtp: test-smtp-server-errors - Move global initialization to main_init/deinit().

5 years agolib-smtp: test-smtp-server-errors - Fix name of client_connection_deinit().
Stephan Bosch [Wed, 8 Apr 2020 22:18:32 +0000 (00:18 +0200)] 
lib-smtp: test-smtp-server-errors - Fix name of client_connection_deinit().

5 years agolib-smtp: test-smtp-server-errors - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 13:40:23 +0000 (15:40 +0200)] 
lib-smtp: test-smtp-server-errors - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agolib-smtp: test-smtp-server-errors - Ignore SIGPIPE.
Stephan Bosch [Wed, 8 Apr 2020 22:16:54 +0000 (00:16 +0200)] 
lib-smtp: test-smtp-server-errors - Ignore SIGPIPE.

5 years agolib-smtp: test-smtp-server-errors - Remove useless child signal handler.
Stephan Bosch [Mon, 13 Apr 2020 13:15:34 +0000 (15:15 +0200)] 
lib-smtp: test-smtp-server-errors - Remove useless child signal handler.

Restructure code to better match equivalent unit tests.

5 years agolib-smtp: test-smtp-server-errors - Adjust log prefix code to match other similar...
Stephan Bosch [Wed, 8 Apr 2020 22:15:24 +0000 (00:15 +0200)] 
lib-smtp: test-smtp-server-errors - Adjust log prefix code to match other similar unit tests.

5 years agolib-smtp: test-smtp-client-errors - Use the new sub-process test API.
Stephan Bosch [Wed, 8 Apr 2020 21:49:31 +0000 (23:49 +0200)] 
lib-smtp: test-smtp-client-errors - Use the new sub-process test API.

This makes an effort to terminate server processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agolib-smtp: test-smtp-client-errors - Split off test_run_server/dns/client() from test_...
Stephan Bosch [Wed, 8 Apr 2020 20:37:59 +0000 (22:37 +0200)] 
lib-smtp: test-smtp-client-errors - Split off test_run_server/dns/client() from test_run_client_server().

5 years agolib-smtp: test-smtp-client-errors - Rename test_servers_kill_all() to test_servers_ki...
Stephan Bosch [Wed, 8 Apr 2020 20:27:46 +0000 (22:27 +0200)] 
lib-smtp: test-smtp-client-errors - Rename test_servers_kill_all() to test_servers_kill_forced().

5 years agolib-smtp: test-smtp-client-errors - Move global initialization to main_init/deinit().
Stephan Bosch [Wed, 8 Apr 2020 20:24:47 +0000 (22:24 +0200)] 
lib-smtp: test-smtp-client-errors - Move global initialization to main_init/deinit().

5 years agolib-smtp: test-smtp-client-errors - Avoid using sleep().
Stephan Bosch [Wed, 8 Apr 2020 19:10:08 +0000 (21:10 +0200)] 
lib-smtp: test-smtp-client-errors - Avoid using sleep().

5 years agolib-smtp: test-smtp-client-errors - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 12:18:05 +0000 (14:18 +0200)] 
lib-smtp: test-smtp-client-errors - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agolib-smtp: test-smtp-client-errors - Generally ignore SIGPIPE.
Stephan Bosch [Wed, 8 Apr 2020 19:04:32 +0000 (21:04 +0200)] 
lib-smtp: test-smtp-client-errors - Generally ignore SIGPIPE.

Remove per-process code that achieves the same.

5 years agolib-smtp: test-smtp-client-errors - Don't ignore SIGCHLD.
Stephan Bosch [Mon, 13 Apr 2020 12:12:25 +0000 (14:12 +0200)] 
lib-smtp: test-smtp-client-errors - Don't ignore SIGCHLD.

5 years agolib-smtp: test-smtp-client-errors - Turn server-side payload read error into a debug...
Stephan Bosch [Mon, 13 Apr 2020 12:44:31 +0000 (14:44 +0200)] 
lib-smtp: test-smtp-client-errors - Turn server-side payload read error into a debug message.

This can readily occur during tests and must not issue a real error message.

5 years agolib-smtp: test-smtp-client-errors - Add log prefixes to distinguish client and server...
Stephan Bosch [Wed, 8 Apr 2020 19:02:18 +0000 (21:02 +0200)] 
lib-smtp: test-smtp-client-errors - Add log prefixes to distinguish client and server debug messages.

5 years agolib-smtp: test-smtp-payload - Use the new sub-process test API.
Stephan Bosch [Sun, 5 Apr 2020 00:40:33 +0000 (02:40 +0200)] 
lib-smtp: test-smtp-payload - Use the new sub-process test API.

This makes an effort to terminate server processes gracefully. Killing them
bluntly hampers test coverage measurement and valgrind testing.

5 years agolib-smtp: test-smtp-payload - Split off test_run_client/server() from test_run_client...
Stephan Bosch [Tue, 7 Apr 2020 22:04:05 +0000 (00:04 +0200)] 
lib-smtp: test-smtp-payload - Split off test_run_client/server() from test_run_client_server().

5 years agolib-smtp: test-smtp-payload - Adjust log prefix code to match other similar unit...
Stephan Bosch [Tue, 7 Apr 2020 21:48:44 +0000 (23:48 +0200)] 
lib-smtp: test-smtp-payload - Adjust log prefix code to match other similar unit tests.

5 years agolib-smtp: test-smtp-payload - Rename test_server_kill() to test_server_kill_forced().
Stephan Bosch [Sun, 5 Apr 2020 00:34:29 +0000 (02:34 +0200)] 
lib-smtp: test-smtp-payload - Rename test_server_kill() to test_server_kill_forced().

5 years agolib-smtp: test-smtp-payload - Move global initialization to main_init/deinit().
Stephan Bosch [Sun, 5 Apr 2020 00:32:48 +0000 (02:32 +0200)] 
lib-smtp: test-smtp-payload - Move global initialization to main_init/deinit().

5 years agolib-smtp: test-smtp-payload - Call test_files_init/deinit() in test_run_client_server().
Stephan Bosch [Sun, 5 Apr 2020 00:25:30 +0000 (02:25 +0200)] 
lib-smtp: test-smtp-payload - Call test_files_init/deinit() in test_run_client_server().

5 years agolib-smtp: test-smtp-payload - Use lib-signals API.
Stephan Bosch [Mon, 13 Apr 2020 11:28:51 +0000 (13:28 +0200)] 
lib-smtp: test-smtp-payload - Use lib-signals API.

Using signal() is not portable for installing a signal handler.

5 years agolib-smtp: test-smtp-payload - Properly exit child process.
Stephan Bosch [Mon, 13 Apr 2020 11:26:04 +0000 (13:26 +0200)] 
lib-smtp: test-smtp-payload - Properly exit child process.

5 years agolib-smtp: test-smtp-payload - Don't ignore SIGCHLD.
Stephan Bosch [Mon, 13 Apr 2020 11:23:15 +0000 (13:23 +0200)] 
lib-smtp: test-smtp-payload - Don't ignore SIGCHLD.

5 years agolib-master: master-service - Add master_service_deinit_forked().
Stephan Bosch [Fri, 10 Apr 2020 15:30:51 +0000 (17:30 +0200)] 
lib-master: master-service - Add master_service_deinit_forked().

5 years agolib-smtp: test-smtp-server-errors - Fix "many bad commands" test.
Stephan Bosch [Mon, 25 May 2020 15:16:30 +0000 (17:16 +0200)] 
lib-smtp: test-smtp-server-errors - Fix "many bad commands" test.

It didn't properly handle the two parallel connections. Removed a useless
context struct definition. Modified debug message for easier debugging.

5 years agolib-smtp: Reformat test-smtp-submit.c.
Stephan Bosch [Wed, 8 Apr 2020 23:33:22 +0000 (01:33 +0200)] 
lib-smtp: Reformat test-smtp-submit.c.

5 years agolib-smtp: Reformat test-smtp-server-errors.c.
Stephan Bosch [Wed, 8 Apr 2020 22:07:36 +0000 (00:07 +0200)] 
lib-smtp: Reformat test-smtp-server-errors.c.

5 years agolib-smtp: Reformat test-smtp-client-errors.c.
Stephan Bosch [Wed, 8 Apr 2020 20:05:57 +0000 (22:05 +0200)] 
lib-smtp: Reformat test-smtp-client-errors.c.

5 years agolib-smtp: Reformat test-smtp-payload.c.
Stephan Bosch [Sun, 5 Apr 2020 00:22:50 +0000 (02:22 +0200)] 
lib-smtp: Reformat test-smtp-payload.c.

5 years agolib-program-client: test-program-client-local - Add test for running client without...
Stephan Bosch [Fri, 22 May 2020 22:36:48 +0000 (00:36 +0200)] 
lib-program-client: test-program-client-local - Add test for running client without I/O or timeouts.

5 years agolib: child-wait - Mark the SIGCHLD handler as expected when waiting for child.
Stephan Bosch [Thu, 21 Feb 2019 01:37:41 +0000 (02:37 +0100)] 
lib: child-wait - Mark the SIGCHLD handler as expected when waiting for child.

This alows waiting for a child to be the only activity on the ioloop.

5 years agolib: lib-signals - Implement lib_signals_set_expected().
Stephan Bosch [Thu, 21 Feb 2019 01:34:54 +0000 (02:34 +0100)] 
lib: lib-signals - Implement lib_signals_set_expected().

This is a promise that the indicated delayed signal will occur eventually, so
that the associated ioloop will eventually terminate. This allows the lib-signal
io to be alone on the ioloop.

5 years agolib-program-client: program-client-local - Restructure program_client_local_disconnect().
Stephan Bosch [Thu, 21 Feb 2019 01:40:36 +0000 (02:40 +0100)] 
lib-program-client: program-client-local - Restructure program_client_local_disconnect().

Simplify the handling of the program timeout and improve the debug messages.

5 years agologin-proxy: Add proxy_host_immediate_failure_after=<time> passdb extra field
Timo Sirainen [Wed, 13 May 2020 12:04:45 +0000 (15:04 +0300)] 
login-proxy: Add proxy_host_immediate_failure_after=<time> passdb extra field

If host has only seen connect failures for this long, stop attempting to
connect there (except with one connection) and instead return immediate
failure. This used to be hardcoded to 30 seconds, which can now be
changed. Most importantly 0 means that this functionality is disabled
entirely.

5 years agopop3-proxy: Add [SYS/TEMP] prefix to temporary login failures
Timo Sirainen [Thu, 7 May 2020 09:19:39 +0000 (12:19 +0300)] 
pop3-proxy: Add [SYS/TEMP] prefix to temporary login failures

5 years agologin-proxy: Support retrying reconnection on temporary authentication failures
Timo Sirainen [Wed, 6 May 2020 17:05:02 +0000 (20:05 +0300)] 
login-proxy: Support retrying reconnection on temporary authentication failures

5 years agosubmission-proxy: Add asserts to clarify pending_auth's lifetime
Timo Sirainen [Thu, 7 May 2020 09:58:14 +0000 (12:58 +0300)] 
submission-proxy: Add asserts to clarify pending_auth's lifetime

5 years agosubmission-proxy: Fix internal authentication failure response code
Timo Sirainen [Wed, 6 May 2020 18:31:43 +0000 (21:31 +0300)] 
submission-proxy: Fix internal authentication failure response code

5 years ago*-login: Change proxy_error() API to proxy_failed() API
Timo Sirainen [Wed, 6 May 2020 17:21:15 +0000 (20:21 +0300)] 
*-login: Change proxy_error() API to proxy_failed() API

The protocol-specific code is now able to control better what kind of a
reply is sent to client on proxying failure.

5 years agologin-proxy: client_proxy_failed() - Move line sending to caller
Timo Sirainen [Sun, 3 May 2020 19:28:15 +0000 (22:28 +0300)] 
login-proxy: client_proxy_failed() - Move line sending to caller

5 years agologin-proxy: Support reconnecting on most types of failures
Timo Sirainen [Sun, 3 May 2020 19:24:55 +0000 (22:24 +0300)] 
login-proxy: Support reconnecting on most types of failures

5 years ago*-login: Remove redundant/early freeing of proxy_password
Timo Sirainen [Wed, 6 May 2020 13:26:34 +0000 (16:26 +0300)] 
*-login: Remove redundant/early freeing of proxy_password

The login-common code already does this after the proxying has failed or
succeeded. Having these duplicate frees immediately after sending the
password isn't all that useful, and most importantly they make it
impossible to reconnect after the password has been sent.

5 years agoimap-login: Don't use proxy_password for checking if authentication is still needed
Timo Sirainen [Wed, 6 May 2020 13:52:24 +0000 (16:52 +0300)] 
imap-login: Don't use proxy_password for checking if authentication is still needed

Required for the next commit.

5 years agologin-proxy: Don't reconnect anymore when timeout is too close
Timo Sirainen [Wed, 6 May 2020 13:13:43 +0000 (16:13 +0300)] 
login-proxy: Don't reconnect anymore when timeout is too close

5 years agologin-proxy: Log auth failures centrally in login_proxy_failed()
Timo Sirainen [Sun, 3 May 2020 19:05:39 +0000 (22:05 +0300)] 
login-proxy: Log auth failures centrally in login_proxy_failed()

5 years agologin-proxy: Support reconnecting also when connect() immediately fails
Timo Sirainen [Wed, 29 Apr 2020 09:51:52 +0000 (12:51 +0300)] 
login-proxy: Support reconnecting also when connect() immediately fails

This can happen when connecting to localhost.

5 years agologin-proxy: Change client_proxy_failed() to be static
Timo Sirainen [Wed, 29 Apr 2020 12:23:05 +0000 (15:23 +0300)] 
login-proxy: Change client_proxy_failed() to be static

The other client_proxy_*_failed() should be used instead.

5 years agologin-proxy: Don't call input_callback on destroy
Timo Sirainen [Thu, 30 Apr 2020 09:23:11 +0000 (12:23 +0300)] 
login-proxy: Don't call input_callback on destroy

All the failure code paths now call failure_callback instead.