[glib-networking] gnutls: deal with G_IO_ERROR_BROKEN_PIPE
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib-networking] gnutls: deal with G_IO_ERROR_BROKEN_PIPE
- Date: Wed, 5 Dec 2012 20:04:09 +0000 (UTC)
commit c03f4e22bef871bdd6ff1c48d40263e942ee0114
Author: Dan Winship <danw gnome org>
Date: Wed Dec 5 15:02:07 2012 -0500
gnutls: deal with G_IO_ERROR_BROKEN_PIPE
glib 2.35 breaks G_IO_ERROR_BROKEN_PIPE out of G_IO_ERROR_FAILED, so
we need to recognize that now as well.
tls/gnutls/gtlsconnection-gnutls.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tls/gnutls/gtlsconnection-gnutls.c b/tls/gnutls/gtlsconnection-gnutls.c
index b1d4d52..ef53bb2 100644
--- a/tls/gnutls/gtlsconnection-gnutls.c
+++ b/tls/gnutls/gtlsconnection-gnutls.c
@@ -694,6 +694,9 @@ end_gnutls_io (GTlsConnectionGnutls *gnutls,
if (gnutls->priv->handshaking && !gnutls->priv->ever_handshaked)
{
if (g_error_matches (my_error, G_IO_ERROR, G_IO_ERROR_FAILED) ||
+#if GLIB_CHECK_VERSION (2, 35, 3)
+ g_error_matches (my_error, G_IO_ERROR, G_IO_ERROR_BROKEN_PIPE) ||
+#endif
status == GNUTLS_E_UNEXPECTED_PACKET_LENGTH ||
status == GNUTLS_E_FATAL_ALERT_RECEIVED ||
status == GNUTLS_E_DECRYPTION_FAILED ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]