emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r105328: Silence error message we get


From: Lars Magne Ingebrigtsen
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105328: Silence error message we get in gnutls when the peer hangs up
Date: Wed, 27 Jul 2011 22:45:56 +0200
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105328
fixes bug(s): http://debbugs.gnu.org/9182
committer: Lars Magne Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Wed 2011-07-27 22:45:56 +0200
message:
  Silence error message we get in gnutls when the peer hangs up
  
  * gnutls.c (emacs_gnutls_read): Don't message anything if the peer
  closes the connection while we're reading.
modified:
  src/ChangeLog
  src/gnutls.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-07-25 21:49:42 +0000
+++ b/src/ChangeLog     2011-07-27 20:45:56 +0000
@@ -1,3 +1,8 @@
+2011-07-27  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * gnutls.c (emacs_gnutls_read): Don't message anything if the peer
+       closes the connection while we're reading (bug#9182).
+
 2011-07-25  Jan Djärv  <address@hidden>
 
        * nsmenu.m (ns_popup_dialog): Add an "ok" button if no buttons

=== modified file 'src/gnutls.c'
--- a/src/gnutls.c      2011-07-18 02:34:14 +0000
+++ b/src/gnutls.c      2011-07-27 20:45:56 +0000
@@ -382,6 +382,9 @@
   rtnval = fn_gnutls_record_recv (state, buf, nbyte);
   if (rtnval >= 0)
     return rtnval;
+  else if (rtnval == GNUTLS_E_UNEXPECTED_PACKET_LENGTH)
+    /* The peer closed the connection. */
+    return 0;
   else if (emacs_gnutls_handle_error (state, rtnval) == 0)
     /* non-fatal error */
     return -1;


reply via email to

[Prev in Thread] Current Thread [Next in Thread]