From: Jordi Mallach Date: Fri, 29 Apr 2005 06:45:53 +0000 (+0000) Subject: Apply patch from Julien Plissounneeau Dequène to fix network latency. X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=5ecf5fe67022c14ab5708f467d13c61ab70af959;p=gtetrinet Apply patch from Julien Plissounneeau Dequène to fix network latency. --- diff --git a/ChangeLog b/ChangeLog index 3c646b5..f338539 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,16 @@ +2005-04-29 Jordi Mallach + + * src/client.c: Patch from Julien Plissonneau Duquène to + fix network latency. + + * NEWS: pdate for 0.7.9. + 2005-04-15 Dani Carbonell - * src/partyline.c: Applied patch from Julien Plissonneau Duquene which + * src/partyline.c: Applied patch from Julien Plissonneau Duquène which fixes a segfault in the channel list. - * NEWS: Update for 0.7.9.. + * NEWS: Update for 0.7.9. 2005-04-12 Jordi Mallach diff --git a/NEWS b/NEWS index b74fb4c..69ad0c1 100644 --- a/NEWS +++ b/NEWS @@ -1,7 +1,9 @@ GTetrinet 0.7.9 - 2005-04-12 - Revamped encoding of data handling, fixing the output in partyline, etc. when using UTF-8 locales (Vidar Holen). -- Ported to use GtkAboutDialog (Pedro Villavicencio Garrido) +- Ported to use GtkAboutDialog (Pedro Villavicencio Garrido). +- Fixed network latency issues (Julien Plissonneau Duquène). +- Fixed crashes in the channel list support (Julien Plissonneau Duquène). - New and updated translations: Traditional Chinese (GNOME HK Team), Canadian English (Adam Weinberger), Norwegian bokmÃ¥l (Vidar Holen), Bulgarian (Yavor Doganov), Kinyarwanda (Steve Murphy). diff --git a/src/client.c b/src/client.c index ba16082..97259b9 100644 --- a/src/client.c +++ b/src/client.c @@ -431,12 +431,14 @@ io_channel_cb (GIOChannel *source, GIOCondition condition) int client_sendmsg (char *str) { - char c = 0xFF; + gchar *buf; GError *error = NULL; - g_io_channel_write_chars (io_channel, str, -1, NULL, &error); - g_io_channel_write_chars (io_channel, &c, 1, NULL, &error); + buf = g_strdup(str); + buf[strlen(str)] = 0xFF; + g_io_channel_write_chars (io_channel, buf, strlen(str)+1, NULL, &error); g_io_channel_flush (io_channel, &error); + g_free(buf); #ifdef DEBUG printf ("> %s\n", str);