Re: Process for rss-folder hangs

Markus Huber <[email protected]> Wed, 24 Jan 2018 14:26:02 +0100
Newsgroups gmane.mail.wanderlust.general
Message-ID <0M4DUV-1ewhCu0szb-00rpIa__18384.6411797733$1516800167$gmane$org@mrelayeu.kundenserver.de>
Am 17.01.2018 um 15:39 schrieb Kazuhiro Ito:

>> > I have a hook that plugs off Wanderlust when I suspend my system. After resume
>> > and when the network is up again I have another hook that plugs on Wanderlust
>> > again. This works usually fine. But for an rss-folder with HTTP which gets
>> > redirected to HTTPS a network connection process sticks around and blocks Emacs
>> > after the resume. If I manually delete the process before plugging on everything
>> > works as expected. Also when I use HTTPS in the first place.
>>
>> It even hangs when I use HTTPS in the first place and no redirection occurs. The
>> connection cannot be reused after a distinct period of time and is not properly
>> reopened.
>>
>> IMAP and NNTP connections get reopened. Where is the right place to look now?

> RSS folder does not use continueous connection.  It uses
> url-retrieve-synchronously function to access server.  Please confirm
> whether Emacs hangs in url-retrieve-synchronously function after
> resume at first.

Thanks, that seemed to be to case. At least I found the thread 'eww/url: www
connections left "open"' on the emacs-devel list. I am testing the following in
my suspend hook.

(maphash
 (lambda (con &rest ignored)
	 (when (and con (get-process (car con)))
		 (delete-process (car con))))
 url-http-open-connections)


> --
> Kazuhiro Ito