2009-04-03 Dan Winship <danw@gnome.org>
+ Bug 577386 – Fails to handle HTTPS redirect from a certain site.
+
+ * libsoup/soup-gnutls.c (soup_gnutls_read): Treat abnormal
+ EOFs as though they were normal, rather than as errors. Shrug.
+
+ Reported by Diego Escalante Urrelo.
+
+2009-04-03 Dan Winship <danw@gnome.org>
+
Bug 577360 – handle cookies with same name but different path
* libsoup/soup-cookie-jar.c (soup_cookie_jar_add_cookie): check
goto again;
}
+ if (result == GNUTLS_E_UNEXPECTED_PACKET_LENGTH) {
+ /* This means the connection was either corrupted or
+ * interrupted. One particular thing that it can mean
+ * is that the remote end closed the connection
+ * abruptly without doing a proper TLS Close. There
+ * are security reasons why it's bad to treat this as
+ * not-an-error, but for compatibility reasons (eg,
+ * bug 577386) we kinda have to. And it's not like
+ * we're very secure anyway.
+ */
+ return G_IO_STATUS_EOF;
+ }
+
if (result < 0) {
g_set_error (err, G_IO_CHANNEL_ERROR,
G_IO_CHANNEL_ERROR_FAILED,