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: Odd possibly TLS-related network hang
Date: Tue, 13 Aug 2013 22:31:41 +0200	[thread overview]
Message-ID: <m37gfpib82.fsf@stories.gnus.org> (raw)

If I eval the following, Emacs hangs hard for five seconds:

(progn
  (url-retrieve "https://f.cloud.github.com/assets/54012/955557/7ed1352e-042c-11e3-91ec-8e27c707a011.png" 'ignore)
  (url-retrieve "https://f.cloud.github.com/assets/54012/955360/3e5f0672-0429-11e3-8cfd-28a1ede5f5ef.png" 'ignore))

strace tells me the following is happening:
  
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)
[pid 13635] recvfrom(22, 0x7af24e0, 5, 0, 0, 0) = -1 EAGAIN (Resource temporarily unavailable)

[ a lot of snippage ]

Until it finally gets something:

[pid 13635] recvfrom(22, "\26\3\3\0Q", 5, 0, NULL, NULL) = 5

Looking at the code, it shouldn't be busy-waiting if it gets an EAGAIN,
should it?  At least it didn't use to...  Hm...

-- 
(domestic pets only, the antidote for overdose, milk.)
  No Gnus T-Shirt for sale: http://ingebrigtsen.no/no.php
  and http://lars.ingebrigtsen.no/2013/08/twenty-years-of-september.html




                 reply	other threads:[~2013-08-13 20:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=m37gfpib82.fsf@stories.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).