We should return 0 instead of G_IO_ERROR_CLOSED for consistency with recv() and read().
Attach a file by drag & drop or click to upload