From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/61521 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.gnus.general Subject: Re: nntp problems with hibernating and waking up in a new network Date: Tue, 13 Dec 2005 19:57:11 +0100 Organization: Probably a good idea Message-ID: <87d5k0n7ug.fsf@dod.no> References: <87lkyq3a60.fsf@dod.no> <87bqzmns0m.fsf@dod.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1134500840 4037 80.91.229.2 (13 Dec 2005 19:07:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Dec 2005 19:07:20 +0000 (UTC) Original-X-From: ding-owner+m10053@lists.math.uh.edu Tue Dec 13 20:07:12 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EmFPk-0005Tl-5x for ding-account@gmane.org; Tue, 13 Dec 2005 20:02:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1EmFPc-000344-00; Tue, 13 Dec 2005 13:02:08 -0600 Original-Received: from nas02.math.uh.edu ([129.7.128.40]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1EmFPT-00033z-00 for ding@lists.math.uh.edu; Tue, 13 Dec 2005 13:01:59 -0600 Original-Received: from quimby.gnus.org ([80.91.224.244]) by nas02.math.uh.edu with esmtp (Exim 4.52) id 1EmFPL-0002wu-LC for ding@lists.math.uh.edu; Tue, 13 Dec 2005 13:01:57 -0600 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1EmFPK-0007bg-00 for ; Tue, 13 Dec 2005 20:01:50 +0100 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EmFNU-0004fI-CH for ding@gnus.org; Tue, 13 Dec 2005 19:59:56 +0100 Original-Received: from cm-80.111.224.068.chello.no ([80.111.224.68]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Dec 2005 19:59:56 +0100 Original-Received: from sb by cm-80.111.224.068.chello.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 13 Dec 2005 19:59:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-To: ding@gnus.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cm-80.111.224.068.chello.no Mail-Copies-To: never User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:IVhGJFHA6yKuPCvm9bktnLrSbqg= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:61521 Archived-At: >>>>> Simon Josefsson : > If you remove the " *nntp*server" buffer, perhaps it will work? No. If I come out of hibernate and toggle plugged on Gnus and it gets to go to time out on all nntp servers, there are no " *nntp*..." buffers when it has finished. > If you (setq debug-on-error t) and C-g the 'O', where is it stuck? > Perhaps strace or gdb would help too. I think that Bjørn Mork's suggestion otherwise in the thread about Emacs caching the DNS server is the problem. So the question is what to do about it. Adding (nntp-open-connection-function nntp-open-telnet-stream) to nntp servers, work for going plugged, and for doing `g' in the *Group* buffer. But fails when fetching the articles, and _really_ fails when posting (see my discussion with myself in a different place in this thread). The idea behind doing this is to fork off a different process for connecting to NNTP servers, because this process will use the current /etc/resolv.conf nameserver, and not the one that emacs has cached, which was the one active when emacs was started.