all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: gnutls infloop possibly fixed
Date: Sat, 11 Feb 2012 18:10:23 +0100	[thread overview]
Message-ID: <87hayx8feo.fsf@gnus.org> (raw)

I finally took a hard look at the GnuTLS-related Emacs hangs.  It turned
out to be pretty easy to reproduce for me.  If I switch off the wifi on
this laptop and then presses `g' in Gnus, Emacs would reliably use 100%
CPU, and `C-g' or anything wouldn't work.  So a totally dead Emacs.

I chased this down to emacs_gnutls_write, which would just, well,
infloop if libgnutls returned EAGAIN.  I've now removed that, and just
leaves the normal Emacs process loop to retry if we get an EAGAIN.

This seems to work for me -- `C-g' reliably works for me if I drop the
network, or I get a new IP address.

There may be other side-effects, though.  Slower throughput?  I don't
know.  Please give it a whirl and report back whether things stop
working or not.

-- 
(domestic pets only, the antidote for overdose, milk.)
  http://lars.ingebrigtsen.no  *  Sent from my Rome




             reply	other threads:[~2012-02-11 17:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-11 17:10 Lars Ingebrigtsen [this message]
2012-02-12  2:48 ` gnutls infloop possibly fixed Ted Zlatanov
2012-02-12 19:47   ` Lars Ingebrigtsen
2012-02-12 21:34     ` Ted Zlatanov
2012-02-13 15:48     ` Tom Tromey
2012-02-13 19:11       ` Lars Ingebrigtsen
2012-02-13 19:39         ` Lars Ingebrigtsen
2012-02-13 20:46           ` Andreas Schwab
2012-02-13 20:47             ` Lars Ingebrigtsen
2012-02-13 21:41     ` Richard Stallman
2012-02-13 22:05       ` Andreas Schwab

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

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

  git send-email \
    --in-reply-to=87hayx8feo.fsf@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.