From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.bugs Subject: bug#30475: 25.3; connection-failure errors Date: Thu, 15 Feb 2018 17:24:32 -0500 Message-ID: <87y3jtyjq7.fsf@redhat.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1518733909 10999 195.159.176.226 (15 Feb 2018 22:31:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Feb 2018 22:31:49 +0000 (UTC) To: 30475@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 15 23:31:45 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1emS3q-0001O5-8X for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Feb 2018 23:31:26 +0100 Original-Received: from localhost ([::1]:37942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emS5s-00012k-9N for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Feb 2018 17:33:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emRxi-0000zL-8l for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:25:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emRxe-0003A7-4p for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:25:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emRxd-00039w-W8 for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:25:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1emRxd-0002pu-Q1 for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:25:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Raeburn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Feb 2018 22:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30475 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151873349110882 (code B ref -1); Thu, 15 Feb 2018 22:25:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Feb 2018 22:24:51 +0000 Original-Received: from localhost ([127.0.0.1]:45258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emRxT-0002pR-A3 for submit@debbugs.gnu.org; Thu, 15 Feb 2018 17:24:51 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41853) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emRxR-0002pC-7v for submit@debbugs.gnu.org; Thu, 15 Feb 2018 17:24:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emRxK-00030n-Lw for submit@debbugs.gnu.org; Thu, 15 Feb 2018 17:24:44 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:42628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1emRxK-00030d-Hq for submit@debbugs.gnu.org; Thu, 15 Feb 2018 17:24:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1emRxI-0000Wl-MH for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:24:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1emRxE-0002i0-JE for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:24:40 -0500 Original-Received: from mail-qt0-f180.google.com ([209.85.216.180]:36144) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1emRxE-0002ff-Cx for bug-gnu-emacs@gnu.org; Thu, 15 Feb 2018 17:24:36 -0500 Original-Received: by mail-qt0-f180.google.com with SMTP id q18so1669430qtl.3 for ; Thu, 15 Feb 2018 14:24:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=MlnYnB/VPjEa/4I4qgevvUZapMY14ajHxq5dRDNU00I=; b=FKSEJmo48fDU6t+JGAP+qnGtogNd7inCEeSqqGaLbPiCVJBcG2wgUVSF2Q7S1jYT3k 0CjvJWmNqpl0zUsGIevav4xsCj976uk31MchzuYNfHiP0tzxgT2QLZIommij0PU9eM+r QeAAd/gKCwpYO8kG6kJ94RjfdIz8+KrEw00BQhUT4VHMwQLdrY0gwFR8BrMAAMBUSOG5 mSmMizEC1d0TD077eDnWlR2zFY8l6aAlzWTiLqi4UHlktIdWQiQbQe2ludjmn1ea05iY JOirisRsPWtzCdLvpbaoGubOfANmuvaPMw7gf+TVKPYrheiycokcIGNWgjKGmV/WW/ZJ N3/Q== X-Gm-Message-State: APf1xPC4SBRUWAeMw38vAQ6SiM7bI38NZPP3wctDbErRAsJtLVmXvCX2 k0qHhxgmu/xsp+scv0/AdrKbKuEH0uQ= X-Google-Smtp-Source: AH8x224XZC3kAzEvVjwkv38+scHqC22WTjE9TIE9aKSUzfb3zYkYEz6szRHdaS5ipruxWMS1999MPg== X-Received: by 10.237.38.2 with SMTP id z2mr6744824qtc.319.1518733474893; Thu, 15 Feb 2018 14:24:34 -0800 (PST) Original-Received: from crash (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id q26sm12002996qtl.68.2018.02.15.14.24.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2018 14:24:34 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143323 Archived-At: I'm running on a network with a broken IPv6 setup; there are router advertisements so I get a network address and default router, but the router can't get anywhere so I always get "no route" errors back. If I try running rcirc to connect to freenode, I sometimes get: Connecting to irc.freenode.net... open-network-stream: Failed connect: No route to host If I retry a few times, eventually it succeeds. At the moment, irc.freenode.net resolves to 5 IPv4 addresses and 3 IPv6 addresses. Emacs doesn't tell me which address it's trying each time, but I expect something is doing randomization or round-robin ordering. 1) It might be useful (for debugging, at least) if the error message indicated the host name and, when open-network-stream is given a host name, the actual address tried that got the error, if we're not going to try multiple addresses. 2) If a host has multiple addresses, routing failures (or timeouts, or probably some other failures) should cause us to try the next address. The error on one address should probably still be displayed so it's saved to the *Messages* buffer, but success on a second address when the first is unreachable should still let the application code go forward. 2a) In fact, it wouldn't be completely insane to make "Happy Eyeballs" (RFC 8305) style staggered but parallel connection attempts when both IPv4 and IPv6 addresses are available. In GNU Emacs 25.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.22.19) of 2017-09-14 built on buildvm-31.phx2.fedoraproject.org Windowing system distributor 'Fedora Project', version 11.0.11906000 System Description: Fedora release 27 (Twenty Seven) Configured using: 'configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no --with-xwidgets --with-modules build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES XWIDGETS Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: rcirc Minor modes in effect: buffer-face-mode: t diff-auto-refine-mode: t rcirc-track-minor-mode: t display-time-mode: t desktop-save-mode: t which-function-mode: t icomplete-mode: t global-hi-lock-mode: t hi-lock-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t use-hard-newlines: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent messages: open-network-stream: Failed connect: No route to host Connecting to irc.freenode.net... open-network-stream: Failed connect: No route to host Connecting to irc.freenode.net...done Connecting to irc.devel.redhat.com...done Quit funcall-interactively: End of buffer mwheel-scroll: Beginning of buffer [4 times] Mark set mwheel-scroll: Beginning of buffer Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message idna rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums add-log network-stream nsm auth-source cl-seq eieio eieio-core cl-macs password-cache starttls tls gnutls face-remap conf-mode js sgml-mode json map thingatpt adaptive-wrap make-mode sh-script smie executable org-element org-rmail org-mhe org-irc org-info org-gnus org-docview doc-view subr-x jka-compr image-mode dired org-bibtex bibtex org-bbdb org-w3m org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git diff-mode rcirc gnus gnus-ems nnheader gnus-util mail-utils mm-util help-fns mail-prsvr wid-edit time desktop frameset cus-start cus-load kr-init iso-transl advice smart-quotes easy-mmode time-date which-func imenu icomplete server term disp-table ehelp ring hi-lock finder-inf info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 337704 14852) (symbols 48 36689 0) (miscs 40 2764 705) (strings 32 72872 11293) (string-bytes 1 2215683) (vectors 16 31204) (vector-slots 8 689180 7376) (floats 8 317 229) (intervals 56 9731 0) (buffers 976 87))