* Odd possibly TLS-related network hang
@ 2013-08-13 20:31 Lars Magne Ingebrigtsen
0 siblings, 0 replies; only message in thread
From: Lars Magne Ingebrigtsen @ 2013-08-13 20:31 UTC (permalink / raw)
To: emacs-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-08-13 20:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-13 20:31 Odd possibly TLS-related network hang Lars Magne Ingebrigtsen
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.