From: Jake Colman <colman@ppllc.com>
Subject: Re: `open-network-stream' in `nntp-open-network-stream': strange behaviour
Date: 01 Jan 2001 17:11:29 -0500 [thread overview]
Message-ID: <761yumc48e.fsf@newjersey.ppllc.com> (raw)
In-Reply-To: <m3n1ddzzgw.fsf@mutzel.brumpf.de>
How are you using this fix? Are you replacing gnus source? I see exactly
the same bug when accessing my imap server.
>>>>> "CC" == Christoph Conrad <christoph.conrad@gmx.de> writes:
CC> Hi! Linux 2.2.14, i386, Emacs 20.7.1, latest CVS Oort Gnus.
CC> I have the following problem since a few weeks now, a workaround i
CC> found now is at the end of the mail.
CC> When `open-network-stream' failed ONE time for a given host (cause i
CC> am not online, host overloaded etc.), it fails forever in the same
CC> emacs session. If i restart my Emacs, it works again.
CC> This behaviour is ONLY as described when the hostname is a symbolic
CC> name like "News.CIS.DFN.DE". When i always resolve the name to an ip
CC> address before i give it as argument to `open-network-stream', it
CC> works again after having failed.
CC> I know that this isn't a genuine Gnus problem, it might be a problem
CC> of `open-network-stream' or even my network configuration. Maybe you
CC> could give me a hint. With the workaround below it works as expected.
CC> (defun cc-resolve-address( domain )
CC> (save-excursion
CC> (let ((output-buf (generate-new-buffer " *resolve-address*")))
CC> (unwind-protect
CC> (progn
CC> (set-buffer output-buf) (and (eq (call-process
CC> "/usr/bin/nslookup" nil output-buf nil
CC> "-retries=1" domain)
CC> 0)
CC> (> (point-max) 2) (goto-char (point-max)) (when
CC> (re-search-backward (concat "^Name: [ ]*"
CC> domain "\n"
CC> "Address: [
CC> ]*\\(.*\\)$")
CC> nil t)
CC> (match-string 1))))
CC> ;; unwind-protect cleanup
CC> (kill-buffer output-buf)))))
CC> (defun nntp-open-network-stream( buffer )
CC> (let ( (host nntp-address) )
CC> (when (not (string-match "[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+"
CC> host))
CC> (setq host (cc-resolve-address host)))
CC> (if host
CC> (open-network-stream "nntpd" buffer host nntp-port-number)
CC> ;; kill buffer due to a possible bug in nntp-open-connection
CC> (kill-buffer buffer) (error "nntp-open-network-stream: couldn't
CC> resolve %s" nntp-address))))
CC> Best regards, cu, -cc- -- => GNU Emacs Webring @
CC> <http://nav.webring.yahoo.com/hub?ring=emacs> <= Look Ma, this man
CC> can twist his fingers as if they were made of rubber, isn't that
CC> amazing? -- Not really, he's been using emacs for years...!
--
Jake Colman
Principia Partners LLC Phone: (201) 946-0300
Harborside Financial Center Fax: (201) 946-0320
902 Plaza II Beeper: (800) 928-4640
Jersey City, NJ 07311 E-mail: colman@ppllc.com
E-mail: jcolman@jnc.com
web: http://www.ppllc.com
microsoft: "where do you want to go today?"
linux: "where do you want to go tomorrow?"
BSD: "are you guys coming, or what?"
next prev parent reply other threads:[~2001-01-01 22:11 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-30 15:45 Christoph Conrad
2001-01-01 22:11 ` Jake Colman [this message]
2001-01-01 22:51 ` Christoph Conrad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=761yumc48e.fsf@newjersey.ppllc.com \
--to=colman@ppllc.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).