giochannel: not always able to distinguish connection close from generic error
Submitted by Ognyan Tonchev (redstar_)
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?