Use 3 read attempts when in non-blocking mode
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 28 Jan 2010 21:24:04 +0000 (22:24 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 28 Jan 2010 21:25:10 +0000 (22:25 +0100)
gatchat/gatchat.c

index dc33beb..5dbd283 100644 (file)
@@ -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;