From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from mx1.math.uh.edu (mx1.math.uh.edu [129.7.128.32]) by inbox.vuxu.org (Postfix) with ESMTP id 3EAFE2F93C for ; Wed, 23 Oct 2024 17:11:16 +0200 (CEST) Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t3d0y-0000000Ak1Y-4Adm for ml@inbox.vuxu.org; Wed, 23 Oct 2024 10:11:13 -0500 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.97.1) (envelope-from ) id 1t3d0x-00000005qzp-03JV for ml@inbox.vuxu.org; Wed, 23 Oct 2024 10:11:11 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.97.1) (envelope-from ) id 1t3d0u-00000005qzg-14ib for ding@lists.math.uh.edu; Wed, 23 Oct 2024 10:11:08 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98) (envelope-from ) id 1t3d0p-00000009mRW-21yA for ding@lists.math.uh.edu; Wed, 23 Oct 2024 10:11:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=IeRGq6SREN+eZ6k2woxEp1aPx/SMdj4dk/fz38hBaYU=; b=qlQ1diPXZKT5BOibcHQl0p65qW LQC6XbqRWBW29VObwS3FwIhsGRFfL7NIAFP8zOjtZ95/7xA5mh+T234ND1Rc1dAZ3EwJGvoq2eam0 Fud/IRojDGkfOOhPZ5+EEIUcv/OQTjURo1oEM0KWxKtIQWalJfktseLW+ZlvJqcBjqD0=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1t3d0i-0004mC-Ag for ding@gnus.org; Wed, 23 Oct 2024 17:10:58 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1t3d0d-0005QX-TL for ding@gnus.org; Wed, 23 Oct 2024 17:10:52 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Alberto Luaces Subject: Re: nntp and nnimap disconnect and take forever when emacs is idle Date: Wed, 23 Oct 2024 17:10:45 +0200 Message-ID: <87ttd2onwq.fsf@eps142.cdf.udc.es> References: <87froospgn.fsf@subvertising.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:dZjE4JIc4wlFf3h4ee/k3LDb7og= List-ID: Precedence: bulk Bob Newell writes: >> Does anyone else also experience this, when they’ve left their Emacs >> or just gnus idle for sometime, it disconnects from the server, > > What I do is run a 'keepalive' every 5 minutes to quickly poke > the server and maintain the connection. You can do this with > a run-with-timer although I prefer to do it outside of emacs > with a bash script. I do something along those lines with the following in my gnus.el (but it could be anywhere else): (gnus-demon-add-handler 'gnus-demon-scan-news 15 t) -- Alberto