From d2df1a9eafeca22ee69dd8c7c6065f93d4fbaadc Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 8 Sep 2017 17:41:27 +0200 Subject: fixup! channel: Call red_channel_disconnect_if_pending_send() from red_channel_wait_all_sent() --- server/red-channel.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/red-channel.h b/server/red-channel.h index 8bec1f30..4cb18eb7 100644 --- a/server/red-channel.h +++ b/server/red-channel.h @@ -210,9 +210,13 @@ const RedChannelCapabilities* red_channel_get_local_capabilities(RedChannel *sel * * timeout is in nano sec. -1 for no timeout. * + * This method tries for up to @timeout nanoseconds to send all the + * items which are currently queued. If the timeout elapses, + * the RedChannelClient which are too slow (those which still have pending + * items) will be disconnected. + * * Return: TRUE if waiting succeeded. FALSE if timeout expired. */ - bool red_channel_wait_all_sent(RedChannel *channel, int64_t timeout); -- cgit v1.2.3