unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: gnutls error handling
Date: Sun, 17 Oct 2010 20:50:05 +0200	[thread overview]
Message-ID: <m3k4lgzmaq.fsf@quimbies.gnus.org> (raw)
In-Reply-To: 83tykkacdg.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

> Does Emacs try to read from this fd (18 in this case)?  Because AFAIU,
> a read from such a socket should return zero bytes, which could be
> used as a sign that we need to close the file descriptor.

Ah, right.  I've now changed the code in emacs_gnutls_read to do that on
most errors from the library, and using that, and I'll see whether I can
repeat the bug or not.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




      reply	other threads:[~2010-10-17 18:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-17 13:55 gnutls error handling Lars Magne Ingebrigtsen
2010-10-17 15:22 ` Eli Zaretskii
2010-10-17 16:21   ` Jan D.
2010-10-17 17:05     ` Lars Magne Ingebrigtsen
2010-10-17 17:18       ` Lars Magne Ingebrigtsen
2010-10-17 18:43         ` Eli Zaretskii
2010-10-17 18:50           ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3k4lgzmaq.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).