GNOME Bugzilla – Bug 748308
giochannel: not always able to distinguish connection close from generic error
Last modified: 2018-05-24 17:47:42 UTC
g_io_channel_read_line() returns G_IO_CHANNEL_ERROR_FAILED when other end closes connection and errno is ECONNRESET. How about changing the API so that it returns EOF in this case too or at least Error Code/Error Domain are properly set, for example to G_IO_CHANNEL_ERROR_CONNRESET. Currently G_IO_CHANNEL_ERROR_CONNRESET is not present unlike G_IO_CHANNEL_ERROR_PIPE for example. Would you accept any change in this respect?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1029.