From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: Determining whether a TCP connection is up Date: Mon, 05 Aug 2013 17:23:25 +0200 Organization: Emacs Helm Message-ID: <8738qoxitu.fsf@gmail.com> References: <87txj64vbx.fsf@dex.adm.naquadah.org> <878v0g1l55.fsf@dex.adm.naquadah.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375716242 25232 80.91.229.3 (5 Aug 2013 15:24:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 15:24:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 05 17:24:01 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V6Mdd-0007rQ-3V for ged-emacs-devel@m.gmane.org; Mon, 05 Aug 2013 17:24:01 +0200 Original-Received: from localhost ([::1]:33725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6Mdc-0006qf-GP for ged-emacs-devel@m.gmane.org; Mon, 05 Aug 2013 11:24:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6MdU-0006qG-Ie for emacs-devel@gnu.org; Mon, 05 Aug 2013 11:23:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6MdO-000447-FV for emacs-devel@gnu.org; Mon, 05 Aug 2013 11:23:52 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57181) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6MdO-00043v-9m for emacs-devel@gnu.org; Mon, 05 Aug 2013 11:23:46 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V6MdK-0007kF-CU for emacs-devel@gnu.org; Mon, 05 Aug 2013 17:23:42 +0200 Original-Received: from 37.161.121.110 ([37.161.121.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Aug 2013 17:23:42 +0200 Original-Received: from thierry.volpiatto by 37.161.121.110 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 05 Aug 2013 17:23:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 37.161.121.110 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:gi10ntPMFJciDa59cJkVj70GYtk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162434 Archived-At: Stefan Monnier writes: >> - connections will eventually time out (the kernel does have a TCP >> timeout), and you will be able to reschedule the operation since you >> used a queue. > > Which reminds me that I regularly have Gnus sessions where I get > neither an answer nor a timeout after (much) more than 10 minutes. It seems that killing the processes (nnimap, nntpd) each time a group is quitted avoid a lot of C-g'ing, especially with tethering: (defun tv-gnus-kill-all-nnimap-procs () (loop for proc in (process-list) when (string-match "\\*?nnimap\\|nntpd" (process-name proc)) do (delete-process proc))) (add-hook 'gnus-exit-group-hook 'tv-gnus-kill-all-nnimap-procs) (add-hook 'gnus-group-catchup-group-hook 'tv-gnus-kill-all-nnimap-procs) Not perfect but it helps. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997