From 4f3b99e189ec925fa0816b49f4a4bbfa999dfddf Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 28 Jan 2010 22:24:04 +0100 Subject: Use 3 read attempts when in non-blocking mode --- gatchat/gatchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gatchat/gatchat.c') diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index dc33beba..5dbd2832 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; -- cgit v1.2.3