unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* gnutls infloop possibly fixed
@ 2012-02-11 17:10 Lars Ingebrigtsen
  2012-02-12  2:48 ` Ted Zlatanov
  0 siblings, 1 reply; 11+ messages in thread
From: Lars Ingebrigtsen @ 2012-02-11 17:10 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-02-13 22:05 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-11 17:10 gnutls infloop possibly fixed Lars Ingebrigtsen
2012-02-12  2:48 ` 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

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).