From 1e3def632f54af8437080f8fe6db7f1d833f606d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 28 Jan 2010 22:24:04 +0100 Subject: [PATCH] Use 3 read attempts when in non-blocking mode --- gatchat/gatchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index dc33beb..5dbd283 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -916,7 +916,7 @@ static GAtChat *create_chat(GIOChannel *channel, GIOFlags flags, if (flags & G_IO_FLAG_NONBLOCK) { chat->use_write_watch = TRUE; - chat->max_read_attempts = 1; + chat->max_read_attempts = 3; } else { chat->use_write_watch = FALSE; chat->max_read_attempts = 1; -- 2.7.4