From 1b10f55f5c33feec78116ce8c12114f54d0d1846 Mon Sep 17 00:00:00 2001 From: Carlos Pargada Date: Thu, 20 Jan 2011 11:53:50 +0000 Subject: [PATCH] gatchat: improve large file downlink data transfer Fix large file downlink data transfer on IFX modem. Increase buffer size of ring buffer to support close received Packets from the modem. Set highest priority for write data on IO device --- gatchat/gatio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatchat/gatio.c b/gatchat/gatio.c index 9cfc9989..9d44a780 100644 --- a/gatchat/gatio.c +++ b/gatchat/gatio.c @@ -197,7 +197,7 @@ static GAtIO *create_io(GIOChannel *channel, GIOFlags flags) io->use_write_watch = FALSE; } - io->buf = ring_buffer_new(4096); + io->buf = ring_buffer_new(8192); if (!io->buf) goto error; @@ -288,7 +288,7 @@ gboolean g_at_io_set_write_handler(GAtIO *io, GAtIOWriteFunc write_handler, if (io->use_write_watch == TRUE) io->write_watch = g_io_add_watch_full(io->channel, - G_PRIORITY_DEFAULT, + G_PRIORITY_HIGH, G_IO_OUT | G_IO_HUP | G_IO_ERR | G_IO_NVAL, can_write_data, io, write_watcher_destroy_notify);