]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: Clarify o_stream_set_flush_pending() comment related to corking
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 12 Aug 2020 08:57:26 +0000 (11:57 +0300)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 12 Aug 2020 08:57:46 +0000 (11:57 +0300)
src/lib/ostream.h

index 99c1a8c9c28c0f1a581881fa205e08841030f817..59c7df77fc1b92d0f1a5ad3e9efc4e19224a6822 100644 (file)
@@ -152,7 +152,9 @@ static inline int o_stream_uncork_flush(struct ostream *stream)
 }
 
 /* Set "flush pending" state of stream. If set, the flush callback is called
-   when more data is allowed to be sent, even if the buffer itself is empty. */
+   when more data is allowed to be sent, even if the buffer itself is empty.
+   Note that if the stream is corked, the flush callback won't be called until
+   the stream is first uncorked. */
 void o_stream_set_flush_pending(struct ostream *stream, bool set);
 /* Returns the number of bytes currently in all the pending write buffers of
    this ostream, including its parent streams. This function is commonly used