summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2017-09-08 17:41:27 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2017-09-08 18:19:31 +0200
commitd2df1a9eafeca22ee69dd8c7c6065f93d4fbaadc (patch)
treee4b279c237f3ae3ac2aa48130b084181ee5ea6ba
parentc7c3a933bbee43f0f7800529e605135d1c1679d3 (diff)
fixup! channel: Call red_channel_disconnect_if_pending_send() from red_channel_wait_all_sent()flush_commands
-rw-r--r--server/red-channel.h6
1 files changed, 5 insertions, 1 deletions
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);