From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: eww/url: www connections left "open" Date: Wed, 20 Dec 2017 08:29:04 +0100 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513754847 23101 195.159.176.226 (20 Dec 2017 07:27:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 20 Dec 2017 07:27:27 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: raman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 20 08:27:23 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eRYmh-0005cQ-4I for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2017 08:27:23 +0100 Original-Received: from localhost ([::1]:37338 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRYof-0003kd-Ht for ged-emacs-devel@m.gmane.org; Wed, 20 Dec 2017 02:29:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39705) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eRYoZ-0003kB-23 for emacs-devel@gnu.org; Wed, 20 Dec 2017 02:29:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eRYoW-0004fU-EM for emacs-devel@gnu.org; Wed, 20 Dec 2017 02:29:19 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:43262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eRYoW-0004Vu-6u for emacs-devel@gnu.org; Wed, 20 Dec 2017 02:29:16 -0500 Original-Received: from cm-84.209.240.67.getinternet.no ([84.209.240.67] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eRYoK-0005sR-Gi; Wed, 20 Dec 2017 08:29:06 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUtLSyysbABAQFWVVQS EhJnu+bbAAACS0lEQVQ4jW1Ui7WsIAwMnwKIsQBWKQCMBSDQf01v0L2fvedljy4QTTKTieRpeC5S wqXMoQhz0ZZaog3GhcvyKmyChsC6bJtTSm2M06nmPasUE7LmlTozearR49bPQXHusiclnIgWzaLO 5awdF8wVJkO+1+oHjeHTGG3g5r1j1pl8bH8sGQ549LHW5smzJtRPsIFYMLw6V3UMF7qlXxGi/Vos W6MISzFWPOkzQtVK1GptVIq5rRRQMotVmaZ0rwFj2vx71saR61fvrx3wiTwwnO2wy7muhOA0Kxk3 mjSz3Hm+q0rlE+TEQRNH7BMMvU2RPNMNj528ObgDfYfamfkz1Pv/BYf9cIyRrB+pq2hrM5KfkTKB yB6kXBIAXYTLLQe8DoeBo4dgrslChi6mW9FaNNR18rlW5ztKP9VRznTG5H3HVVPzI3pb4zipNzr3 zfodBaSEJuJKaUPrN4IGoLvfDUdlOPvVQbCIgn9wgNHW7WZHuPnAjypVS9BSazpDLG/eq68ekgS3 ts6zl32nwB5KpYcoPTfzpx9f1LL8xxEnO8fDcvugnRzrs7+WD8cY5jmIwnPOIGXIbmJK++o94F0C nU9aD1rVOPBeZBFkqShC2GBHmDu5HauUXHWWh3awkNz9wg6de5aP0Xv/P0fhu51z+MuPi/h+EJ+G 1SArZMfyFgM/rpcYDLYc+DiwK6YQK/tCGl3NGPVwqmKUUCSVFyZEd9pPd55HPrjyXi7tNHjnXWKO x36Yg5pLsstrucjyJinEI9lod6gibSMd0cZ/O6KZ2HVcRBwAAAAASUVORK5CYII= In-Reply-To: (raman's message of "Tue, 19 Dec 2017 20:09:24 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:221274 Archived-At: raman writes: > Most of the time, this is harmless and the connections go away --- > except when they dont, and if more than a few of these hang around, > then opening other URLs with EWW produces nothing. Killing those > hanging connections with delete-process immediately gets EWW working > again --- e.g. killing those connections with the following loop: > > (cl-loop > for p in (process-list) > when (string-match "www" (process-name p)) > do (delete-process p)) The list of connections is in the `url-http-open-connections' hash table, so you can just loop over that to kill the connections. And, yes, it's annoying that url-http.el doesn't deal with hanging connections very well. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no