bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
139143f1b798472438b813343a48601f1c564060 |
|
15-Dec-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
global: Change calls to array_idx_modifiable to array_idx_get_space.
Only calls that require space allocation are to be changed. |
19557f192d37cd54a1a090a8a26d9d47265e4413 |
|
01-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Fix spelling mistakes in comments
Original work by @andreasschulze and @jsoref |
1ef9fe877817de76eb38883ccf3833fae60e6865 |
|
05-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: stop including fd-set-nonblock.h & fd-close-on-exec.h directly |
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 |
80cfaba9e253545cbcd08f84939b27cdbb4a50d0 |
|
20-Sep-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib: Ensure handler_context is not NULL
handler context must not be NULL here. |
49b6e2d72cfaa5c244c798ddbae5b61489b0f728 |
|
07-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
-Wstrict-bool warning fixes |
c8920d5f3df9663668ccd6412218eb28008f4e9a |
|
20-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Minor panic message improvement. |
7420207c4eae66bd7edc2bdebaee7d2cb0b6c341 |
|
18-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: If epoll_ctl() fails, panic instead of just fatal.
This makes it easier to fix such bugs. |
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/' |
b116c06e4d3609f07f1d9582a932ad3ea9ce7e15 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
ioloop-epoll: Fix fatal epoll_wait() error occurring when there are only ios with no 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> |
9097014815990de521654305dec6a8d5d29407f2 |
|
11-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib: ioloop-epoll didn't correctly check if there were any IO events.
Alternatively we could have checked for array_count(&ctx->events) >
ctx->deleted_count, but this code is a bit more understandable.
This change doesn't actually fix any proper bugs, it just causes the process
to crash instead of going to infinite wait loop. |
f922ecaf766c60c10f642f3ac2d5f7748ff642b0 |
|
03-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
ioloop: Added io_set_pending() |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
f2767c736d72e6aa9a2aae5d0a9b89abae9e29e9 |
|
26-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
Panic if io_remove() fails with EBADF.
It's a bug that shouldn't really be ignored. Panicing will give a debuggable
core dump. |
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. |
f0a386b29f2c9163e8fff6a8e26077b59708c980 |
|
26-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
liblib: Added assert-check to epoll code to make sure we don't wait infinitely with no events. |
12d535f8c44bbcdc1338f49aa93a0d637bd48fd9 |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Added/updated some copyright comments. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
637f9883a385abb03fd1211e79cc68df696cc387 |
|
10-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
ioloop-epoll: Fix for running with zero I/Os. |
eff0f02f2c8320c1bd4df72a281a92051d78b2b1 |
|
08-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
ioloop-epoll: Allow running ioloop even without any I/Os (only timeouts). |
31a574fda352ef4f71dbff9c30e15e4744e132c0 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added array_append_zero() to write a zero-filled record to an array.
Replaced (void)array_append_space() calls with it. |
0536ccb51d41e3078c3a9fa33e509fb4b2420f95 |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Renamed lib/*-internal.h files to lib/*-private.h for consistency. |
b9a13c136b7c5803a8271878fcbbf5328f6e7f2a |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
ioloop: Added support for per-io/timeout callback log prefix automation. |
4d4cd9cde9e01d4ad9354e6e30ac2f90d13042b2 |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
epoll: Suggest not-so-UUOC if epoll_ctl() fails for stdin |
debb28d107fa06d26fd194fdac523cfb32809199 |
|
04-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
epoll: Improved error messages.
--HG--
branch : HEAD |
e34f6064b63bc02598f462df304d2d68910ab04d |
|
21-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
ioloop-epool: Panic on epoll_ctl() failures so it's easier to find the bug.
--HG--
branch : HEAD |
6795f542ed816a3c977085d4f74df1d62a37b690 |
|
22-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
ioloop: Added callback for handling time jumping forwards/backwards.
The default implementation is now to only log a warning when time moves
backwards. The callback is also called if it's detected that time jumps
forwards. In both cases existing timeouts' run times are updated so that
they're called approximately the intended time.
--HG--
branch : HEAD |
717a444a466280a84a468220f647fdcb9f3b546f |
|
02-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
If epoll_create() fails with EMFILE, suggest increasing epoll's max_user_instances.
--HG--
branch : HEAD |
dac0b2e5e0f38c6d95ef1a842d891480db580236 |
|
15-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Added io_loop_set_max_fd_count() to specify how many fds we expect to use.
It's used currently only for figuring out how much space should be
allocated initially to fds.
--HG--
branch : HEAD |
193f5296d2a6b847970c222d8a261b89aae46331 |
|
01-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Don't break if io_remove() or timeout_remove() are called for non-active ioloops.
--HG--
branch : HEAD |
745f2c7424d88e368eff0a3a7650b352a9d1f0dd |
|
21-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added io_remove_closed().
--HG--
branch : HEAD |
20a3870db4f78717574ee94bca1512994391b2ab |
|
03-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Use priority queue to implement timeout handling. Added timeout_reset().
--HG--
branch : HEAD |
ff33b4ab6ba0d5187802ea703f57015864332eb9 |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If poll()/etc. timeouts, we didn't handle time timeouts immediately but
called poll()/etc again with zero timeout and then handled the timeouts.
--HG--
branch : HEAD |
dcc76bb1e1bb287e3e71e6a39a7ca207fab0eaa8 |
|
08-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Various cleanups to ioloop code.
--HG--
branch : HEAD |
4b8459c6c24b79d4ed5974ab6e3289a3f2b701c0 |
|
03-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
s/array_get_modifyable/array_get_modifiable/
--HG--
branch : HEAD |
720692523ece4a549f7c589508d5693ee310f6b3 |
|
07-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Free all the used memory when destroying the ioloop.
--HG--
branch : HEAD |
965e13eea8dc7f1da3769ab0c4667e36d0f33192 |
|
14-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Don't pass uninitialized data in epoll data struct's union to kernel.
Doesn't matter that much, but keeps valgrind happy.
--HG--
branch : HEAD |
91dca97b367c54a139c268b56a0c67f564bd9197 |
|
10-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced ARRAY_CREATE() macro with [ipt]_array_init() macros. The macro
has no side effects so it might as well be lowercased.
--HG--
branch : HEAD |
26a8b7deb3a5b6f26f9c4d71538e1248f680e4be |
|
10-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Removed type parameter from ARRAY_CREATE since it's not needed anymore.
--HG--
branch : HEAD |
dba5754de32284b3149ddd5c9bb1701b05707752 |
|
16-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes
--HG--
branch : HEAD |
35565557e05721a761132cec2ba1d93acacb6c14 |
|
16-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Rewrote much of the kqueue code. It didn't work correctly if there were both
input and output I/O handlers added for the same file descriptor. The code
works now very much like epoll code. Did also several cleanups.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
e074ffeaee1ce283bd42f167c6810e3d013f8218 |
|
16-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Relicensed dovecot-auth to MIT.
--HG--
branch : HEAD |
dfacd2bdce28523f1f100aa2d811a22b90339098 |
|
10-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Fix by Jakob Hirsch
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
f05b9dd37f830576ca7d32ec7071bf87906df3d2 |
|
27-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
And even more log verbosity
--HG--
branch : HEAD |
968453114a3cec32e8e2b000dbaeae934378cf81 |
|
27-Oct-2005 |
Timo Sirainen <tss@iki.fi> |
Added more verbosity to epoll_ctl() failure messages.
--HG--
branch : HEAD |
8d59f06c9422fa49b538e23ffb06eddb23c6add2 |
|
25-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Added IO_ERROR condition that we can watch now.
--HG--
branch : HEAD |
08f24237ccc177f5b3a09b24d8a725fa47e1ee32 |
|
24-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Don't leak epoll fd to child processes. Memory allocations were wrong for
64bit systems. Changed the code to use array_t.
--HG--
branch : HEAD |
a912d084eb8024ce35462c9fd2d50b86b13d8d33 |
|
14-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
If we leaked a t_pop() call, tell where it happened
--HG--
branch : HEAD |
797de45dcf6e24642ab347d5033beb92034b779d |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
data -> context/ctx naming convention replaces
--HG--
branch : HEAD |
8afe3f0e832b8b3483b692205bbd59c0110a20fd |
|
13-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
If we run out of memory, exit with FATAL_OUTOFMEM status instead of dumping
core. Also changed a few other i_panic() calls to others.
--HG--
branch : HEAD |
2f99e798238d681bc8da6f74911d1c49dbfaa76b |
|
07-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Missing error checking in epoll_create(). Patch by Andrey Panin
--HG--
branch : HEAD |
c014f12e8268bf37ca2997e632ad7c22b8d04a84 |
|
06-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
forgot to commit
--HG--
branch : HEAD |