2001-10-22 Joe Shaw <joe@ximian.com>
* src/soup-ssl-proxy/soup-ssl-proxy.c (soup_ssl_proxy_readwrite):
Make sure we handle G_IO_IN before we handle G_IO_HUP so we don't
lose data on the pipe, as you can receive both at the same time.
Ian Peters actually found this, but I am his commit monkey.
+2001-10-22 Joe Shaw <joe@ximian.com>
+
+ * src/soup-ssl-proxy/soup-ssl-proxy.c (soup_ssl_proxy_readwrite):
+ Make sure we handle G_IO_IN before we handle G_IO_HUP so we don't
+ lose data on the pipe, as you can receive both at the same time.
+ Ian Peters actually found this, but I am his commit monkey.
+
2001-10-22 JP Rosevear <jpr@ximian.com>
* src/libsoup/soup-dav.c (soup_dav_response_new): use new error
gint bytes_read = 0, bytes_written = 0, write_total = 0;
GIOError error;
- if (condition & (G_IO_HUP | G_IO_ERR)) goto FINISH;
-
error = g_io_channel_read (iochannel,
read_buf,
sizeof (read_buf),
write_total += bytes_written;
}
+ if (condition & (G_IO_HUP | G_IO_ERR)) goto FINISH;
+
return TRUE;
FINISH: