On Sat, 11 Jul 2015 00:09:54 -0400 Jacques Pelletier <jpellet...@ieee.org> wrote: > Hi, > > I'm using a glib socket: when a client (glib) is connected to a > server, the client doesn't get the HUP messages when the server > closes its connection.
That's probably because the socket implementation does not provide HUP on closure of the remote side of the connection (most don't). You have to inspect whether the read unblocks with 0 bytes received, indicating end of file. See http://www.greenend.org.uk/rjk/tech/poll.html Chris _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list