]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-test: ostream-final-trickle - Call o_stream_set_flush_pending(..., TRUE) in timeout.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Wed, 25 Jan 2023 17:36:40 +0000 (18:36 +0100)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Mon, 30 Jan 2023 19:48:46 +0000 (19:48 +0000)
src/lib-test/ostream-final-trickle.c

index 34257f28d7f680780f913f103cfe3ce6dcbc0344..ceca184dc514b956631dfaa89dcb2d1be95933fb 100644 (file)
@@ -44,9 +44,12 @@ o_stream_final_trickle_flush_buffer(struct final_trickle_ostream *dstream)
 static void
 o_stream_final_trickle_timeout(struct final_trickle_ostream *dstream)
 {
+       struct ostream *ostream = &dstream->ostream.ostream;
+
        i_assert(dstream->buffer_used);
 
        (void)o_stream_final_trickle_flush_buffer(dstream);
+       o_stream_set_flush_pending(ostream, TRUE);
 }
 
 static int o_stream_final_trickle_flush(struct ostream_private *stream)