5a9bbcb13b2dd2cf9a825c7ed09fe7ee143b1275 |
|
07-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_get_root_io() and use it to deduplicate code |
038c2831447440bf0bef89b43dd0968afc298abc |
|
30-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
lib: istream: Allow switching to a specific ioloop. |
a215abacb2d2d1e1bcd475756aab809038ae4277 |
|
07-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_get_last_read_time() |
e0fab14602b73ff590b2a9c5d9e67e2dfb5d1f9e |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: i_stream_read() - Use snapshots
This guarantees that data returned by i_stream_get_data() won't be freed
until the next i_stream_read() returns >0. This is mainly important,
because often the error handling for <=0 doesn't update the buffer
pointers correctly and it leads to complicated bugs where already freed
memory is attempted to be read (but never written). |
89a89730a1dd98edb5c16a5b65f693389eb81124 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add ISTREAM_CREATE_FLAG_NOOP_SNAPSHOT flag |
2974dca6be5120e49279f06c8aa952e5fac56048 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add flags parameter to i_stream_create() and set it to 0
This just changes the API - the following changes add the new flag. |
51d379cbc50242a13462d0fded50e013eb00cc07 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_try_alloc_avoid_compress() |
82ea464c113f43aaa2b2e23de334cf3081c332be |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add istream.snapshot() method for referencing the current memarea
It will be used by following commits. |
5ca745ae8e9903ef5265360e4c882e9314595020 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Use memarea for default istream memory allocations. |
785ee8becdb11e41abaaf64c28eb3923215d1f27 |
|
01-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Add i_stream_free_buffer() to free i_stream_*alloc()ed memory |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
d28179fd78550a58be44dcb1e3e830ab7d33172d |
|
19-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Changed istream.abs_start_offset to be relative start_offset
i_stream_get_absolute_offset() walks through the stream's parents to get the
absolute offset. This allows streams to change their start_offset after
they have already created (e.g. istream-metawrap). |
463f6ea04af934a68facaca0ff089bc306de3f98 |
|
11-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib: Added i_stream_set_persistent_buffers() |
4c096615cb86a826fda377b87df22c579bfe5525 |
|
03-Apr-2014 |
Timo Sirainen <tss@iki.fi> |
Added io_add_istream() and related functionality for combining the ioloop/istream.
The idea here is that it's possible to implement asynchronous istreams when
there isn't a file descriptor that can be used to reliably receive updates. |
5f3151744f3ffa73b57391d4a237884b75423f57 |
|
06-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
istream: Added i_stream_init_parent() to lazily initialize the parent stream. |
439dd06aec3301e65d650f6dc1d4a1a00b356b4f |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
istream: Added internal try_alloc_limit to limit size returned by i_stream_try_alloc()
This was required by the previous SSL change. |
01f4ee4a0243f3fe9af763e1a540cd5cff0d63f5 |
|
28-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
i_stream_stat() API changed.
This fixes also one missing error check. |
6f08b98ac63c25b747120d0c8f8e319b4e26ab0f |
|
12-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_last_line_crlf() |
5df8396a7cbad0b38b83a86667fb3d4c223f6f7c |
|
29-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
istreams: Added default stat() implementation for filter streams. |
032964c7cc6788188b63ae6270fc26cbd4a3ca26 |
|
29-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
istreams: Added default seek() implementation for seekable streams. |
c7acd38cd4ef76a0f4652f9ca659ea5e64458b52 |
|
28-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added i_stream_alloc() |
dd2df6a67f10792ce31a3666197c0b6885893a3a |
|
28-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
istreams: Renamed i_stream_get_buffer_space() to i_stream_try_alloc() |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
0536ccb51d41e3078c3a9fa33e509fb4b2420f95 |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Renamed lib/*-internal.h files to lib/*-private.h for consistency. |