From 683eebe490bbe5caec246c535a10ea9f93f5c330 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 27 Aug 2008 08:06:17 +0300 Subject: [PATCH] Updated o_stream_flush() comment. --HG-- branch : HEAD --- src/lib/ostream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/ostream.h b/src/lib/ostream.h index e9ab1a7dae..08e4dfd541 100644 --- a/src/lib/ostream.h +++ b/src/lib/ostream.h @@ -62,8 +62,8 @@ void o_stream_set_max_buffer_size(struct ostream *stream, size_t max_size); TCP_CORK on if supported. */ void o_stream_cork(struct ostream *stream); void o_stream_uncork(struct ostream *stream); -/* Flush the output stream, blocks until everything is sent. - Returns 1 if ok, -1 if error. */ +/* Try to flush the output stream. Returns 1 if all sent, 0 if not, + -1 if error. */ int o_stream_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. */ -- 2.47.3