54c6a8135c0ded324f7ae7d0cdf1ef177004ee2d |
|
27-Feb-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: connection: Added support for connecting from an explicit source IP. |
36e5cd9ab4c86cf9da0762fa327cd5be04397676 |
|
19-Feb-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: connection - only switch created iostreams
Fixes imap-hibernate: Fatal: master: service(imap-hibernate):
child killed with signal 11 (core dumps disabled)
Broken in 086b73efd1a5812a64acc951366a499d325509a6 |
c85f67cfb8e1cef2de2b681debf4703d5818dc01 |
|
15-Feb-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: connection: Add connection_input_halt() and connection_input_resume().
These are convenience functions that remove and add conn->io respectively. |
086b73efd1a5812a64acc951366a499d325509a6 |
|
15-Feb-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: connection: Record the ioloop the connection was last switched to. |
ed567dac7e55ab3e8dd53d9c86c31ebb2032d4df |
|
07-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add connection_streams_changed()
Originally by Stephan Bosch |
ddaf416216a83e71bc1bfc1b6faf2ead9d774613 |
|
30-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: connection: Allow switching to a specific ioloop. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
15dd18994a8a4933e39e2f87233255d0ca82ba3e |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: connection - When receiving invalid VERSION line, log the line contents |
4b9e7a8752803928aa0897f8cc1fc34592452f07 |
|
26-Nov-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: connection: Added means to initialize connection to just be added to the connection list. |
9a84b90d894a741ae6e090de104d31382a41d0aa |
|
01-Nov-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on [io]_stream_close(NULL) being a no-op
Cleanup performed with the following semantic patch (and a bit of
hand-editing):
@@
expression E;
@@
- if (E != NULL) {
- i_stream_close(E);
- }
+ i_stream_close(E);
@@
expression E;
@@
- if (E != NULL) {
- o_stream_close(E);
- }
+ o_stream_close(E); |
8a4a0ef8264d95ffb2ba8f6f109f94ea7f3454e8 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: connection - Use o_stream_set_finish_via_child(FALSE)
This allows o_stream_finish() calls on child streams without closing this
parent stream. Since the stream has no error checking by default anyway,
this allows the connection stream to be used more easily. |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
5f1d689131a75c39f064cbd4202373e7edf78f18 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on io_remove{,_closed}(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- io_remove(&E);
- }
+ io_remove(&E);
@@
expression E;
@@
- if (E != NULL) {
- io_remove_closed(&E);
- }
+ io_remove_closed(&E); |
fa33df8230c2f27ae863ff83d4251923428d53c7 |
|
31-May-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Use unix streams with connection when using unix socket
This makes it easier to send file descriptors over connection |
3e675de58a30e18fc973d4f0203ed3a4175c8ac5 |
|
07-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Check that output max size is non-zero when version specified
Otherwise we try to send version to non-existent output
stream. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
a5b64f1abb1cb0a9718d5bf7f0ae808072237259 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add connection.allow_empty_args_input
This simplifies input_args() callbacks since they don't always have to check
for args[0] == NULL. This is enabled by default, because none of the current
users want it and it's somewhat unlikely there even will be those in future. |
33a80622828063f5be6f743855d5273fabe8ae58 |
|
16-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use fd_close_maybe_stdio() |
d951320d498ae0800b677b754dde71574102123b |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added connection_input_timeout_reason() |
2c5c70e12365d7910848259f88eb237ce3a15947 |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added connection.connect_started/finished timestamps. |
a238c6fede2022e5a4af707107ffb8f047b7753f |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added connection.last_input_tv for more accuracy |
a2d962e729a1c162145b86b3b6a666ef0a139e52 |
|
10-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: connection_disconnect() now resets last_input
If we reconnect, its value would otherwise be wrong. |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
c61779cfa45c1684b1f7c462011088bad0b8318c |
|
06-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Improved connection_disconnect_reason() |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
009217abb57a24a4076092e8e4e165545747839e |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Changed type of internet port values to in_port_t everywhere.
Created special SET_IN_PORT setting type for internet port values.
Created net_str2port() for parsing internet port values.
Removed several atoi() invocations in the process. |
c5f932968281763df360b9c97cef60f5f80d5e3d |
|
23-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
Use io_stream_get_disconnect_reason() instead of duplicating its code all over the place. |
8d54ab986cb47be90ffe4542393659a5b68369bf |
|
23-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib: connection_disconnect_reason() now returns the full iostream error string. |
4487c66123ca4830f8afbf4efcd7a260848d0e05 |
|
16-Jun-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Added unix_client_connect_msecs setting to connection API. |
091a2dea9d89734a7c1225eed511b3851693a757 |
|
21-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Cork connection output while handling input |
cb3ab2fd5668700a89b274a43595cfbfa1616e4b |
|
12-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib: connection API: Added delayed_unix_client_connected_callback setting.
092a51d80bad commit changed this functionality first to fix lib-http code,
but it broke other code. 1fac17a2bc53 reversed the original behavior.
This change allows either behavior optionally. |
038b90b6d8f7929ab1273b983b982340b636c7cf |
|
12-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib: connection API was unnecessarily delaying client_connected() calls for UNIX sockets. |
6793538c389d3e725456e3eabb697e2743233646 |
|
25-Apr-2015 |
Stephan Bosch <stephan@rename-it.nl> |
lib: connection: Connect to unix socket asynchronously if connected callback is set.
Prevents problems in lib-http unix socket support. |
b78d8dbe4179aabcbf9fda41d282673558dae4d6 |
|
25-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib: Fixed crash in connection API if input streams aren't used (only input fd). |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
4388ddff22681fc4385c963532b20c3560606667 |
|
15-Nov-2014 |
Stephan Bosch <stephan@rename-it.nl> |
lib: connection: Now uses io_add_istream() instead of io_add(). |
959eca738ab09d2760fd96ba329263fe589f84b0 |
|
29-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib: connection_switch_ioloop() should switch also input stream's ioloop. |
48325adac125d7ff275ec69b05b7a92be9637630 |
|
13-Jun-2014 |
Timo Sirainen <tss@iki.fi> |
Added various asserts to try to silence Coverity false positives. |
67e0afe62b26d222614b8d817155bf5c74bd7fe0 |
|
19-Apr-2014 |
Stephan Bosch <stephan@rename-it.nl> |
connection: Added support for creating a stream from input/output stream pair. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
88df77efd9ffdfd9a62bca0a9c8f403ecdbea3ff |
|
17-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
liblib: connection_disconnect() didn't close fd_out if it was different from fd_in. |
e25c9a57d651456a5f446a98e677c8c472c4ce98 |
|
07-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
connection_disconnect(): Explicitly close input/output stream.
This makes sure that if the ostream has some data pending and is still
referenced, the io_remove() won't be called after fd is already closed. |
d48e40d6c77d673ad402d96571198d1cce4da225 |
|
05-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
connection: Give input/output streams a name. |
00b706a9ea136a5945f4ebafaa4ba958b641635d |
|
05-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
connection_list_deinit(): Set disconnect_reason correctly to CONNECTION_DISCONNECT_DEINIT |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
a618726eb3eb09a3866fe93208baf923d593f4d3 |
|
22-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
connection API: Track the number of connections. |
bdd36cfdba3ff66d25570a9ff568d69e1eb543cf |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed network.[ch] to net.[ch].
The function prefixes already started with net_ instead of network_.
And icecap wants to use network.h for other purpose. :) |
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fdd |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
gcc/clang now gives a compiler error in many places if callback isn't
exactly what was expected. It's also now much easier to add more of these
checks. |
a21f618de284dc22a480af1371d5f5cea50a39df |
|
18-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
connection API: Allow calling connection_input_default() for buffered input. |
7db7fbea5d8a07463b625f93d69166d56018dadf |
|
16-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
connection API: Fixed connected() callback to actually allow detecting failed connects. |
d368aabf3ff5411afee1b4af8261163296723e19 |
|
14-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
connection: connection_disconnect_reason() didn't handle non-errors correctly. |
a327d9301f593433c228c4cc8cca05c95b37f6fb |
|
08-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
connection API: Don't do error handling by default on output stream.
For connections the error handling is almost never wanted. |
96f89d51e8315f644f46804a9f0fc4f685ac48bf |
|
30-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Added "connection" API for handling client/server connections more easily. |
aa8e63009c5aa3866bbf5a3e69a86b1ab480c4dd |
|
08-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
redis: Fixed connection handling. |
bc151e6b8ae73b5bf5a9dbf011b14dab220c92de |
|
08-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
Added "connection" API for handling client/server connections more easily. |