summaryrefslogtreecommitdiffstats
path: root/gatchat/gatio.c
diff options
context:
space:
mode:
authorCarlos Pargada <carlos.pargada@intel.com>2011-01-20 11:53:50 +0000
committerMarcel Holtmann <marcel@holtmann.org>2011-01-20 12:59:40 +0100
commit1b10f55f5c33feec78116ce8c12114f54d0d1846 (patch)
treee208135fbe1ebdc820cf7d203db86e3ef2fbf478 /gatchat/gatio.c
parent9adc84ea882cf3d64a19c2469d616a8ff006927d (diff)
downloadofono-1b10f55f5c33feec78116ce8c12114f54d0d1846.tar.bz2
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
Diffstat (limited to 'gatchat/gatio.c')
-rw-r--r--gatchat/gatio.c4
1 files 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);