From: Marcel Holtmann Date: Thu, 28 Jan 2010 21:24:04 +0000 (+0100) Subject: Use 3 read attempts when in non-blocking mode X-Git-Tag: 2.0_alpha~2857 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e3def632f54af8437080f8fe6db7f1d833f606d;p=framework%2Fconnectivity%2Fconnman.git Use 3 read attempts when in non-blocking mode --- 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;