Hi,

Do you keep reading channel's data although the other side close connection? 
maybe you have to check every read call (g_io_channel_read_chars()) for errors. 
GIOChannel is a wrapper of system related I/O such as socket, this will be more 
clear if you try socket API related calls than using GIOChannel.

                Ardhan


--- silverburgh.me...@gmail.com wrote:

From: silverburgh <silverburgh.me...@gmail.com>
To: GTK mailing list <gtk-app-devel-list@gnome.org>
Subject: How to handle GIO channel when the other side kills the connection
Date: Mon, 19 Apr 2010 08:19:26 -0700

Hi,

I am using GIOChannel in my gtk application. I am able to read/write
to GIO channel with a 'client' application, my gtk application serves
as a 'server'.

But when the 'client application' dies unexpectedly, I see a lot of
these errors from my gtk application ('server') terminal:
 GLib-CRITICAL **: g_io_channel_read_chars: assertion
`channel->is_readable' failed

 GLib-CRITICAL **: g_io_channel_read_chars: assertion
`channel->is_readable' failed

 GLib-CRITICAL **: g_io_channel_read_chars: assertion
`channel->is_readable' failed

Can you please tell me what does that mean? And how can I fix it?

Thank you.
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




_____________________________________________________________
Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to