From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#12893: 24.2.50; url-retrieve fails for localhost Date: Thu, 15 Nov 2012 12:57:49 +0400 Message-ID: <877gpn5jle.fsf@vbx.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352969974 29127 80.91.229.3 (15 Nov 2012 08:59:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 08:59:34 +0000 (UTC) To: 12893@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 15 09:59:44 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1TYvIS-0008K9-Bn for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 09:59:40 +0100 Original-Received: from localhost ([::1]:37806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvII-0001LD-Mz for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 03:59:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvIE-0001Kv-K4 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 03:59:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYvIB-0006po-IF for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 03:59:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvIB-0006pj-EL for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 03:59:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYvIo-0006qu-SK for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 04:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2012 09:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12893 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.135296994626247 (code B ref -1); Thu, 15 Nov 2012 09:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2012 08:59:06 +0000 Original-Received: from localhost ([127.0.0.1]:43837 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYvHt-0006pH-Ji for submit@debbugs.gnu.org; Thu, 15 Nov 2012 03:59:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:55410) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYvHp-0006oy-Iw for submit@debbugs.gnu.org; Thu, 15 Nov 2012 03:59:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYvH8-0006Cj-KM for submit@debbugs.gnu.org; Thu, 15 Nov 2012 03:58:21 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:46460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvH8-0006Cf-Gn for submit@debbugs.gnu.org; Thu, 15 Nov 2012 03:58:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvH5-0000nt-D5 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 03:58:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYvH2-0006CA-B9 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 03:58:15 -0500 Original-Received: from mail-lb0-f169.google.com ([209.85.217.169]:47822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYvH1-0006C2-Tu for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 03:58:12 -0500 Original-Received: by mail-lb0-f169.google.com with SMTP id gk1so1241995lbb.0 for ; Thu, 15 Nov 2012 00:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:mime-version:content-type; bh=WK2yAUqKQfZkQ64v4onE7eLpWwwtcIVwIn0mW2SsKlI=; b=AeDUbgV4rpkV1cdyYiECYVqaKrGUyKQJ040EdzSqaiP76m2GgJMEj24wmxHyO3p+/D 8+vmVonspLWhqnh5zMXJFuD8DRI7uM8j8N/gvfXPdNXOYYgheJGdt3Z/AT1uaW/BOjgB eZqmBEtJc7rzVqfD3qIlfYiWS0fdQZ2i2ynNJWQNFbUVL4BvNmTS34XPHUYZM0I63pRM 5QRl58+dCwQG0CMD41zeinmGBIAR4CSq7I1fDYh4iFpEydjrIK4w9rVD2Vnek5QO7nMT +dVBdZLuRI/inz/NEG+/U5f+1v4UnmL8sSWvNSXSQFvLecv2cDvLyqYk1d3i2j2i48HH uDmA== Original-Received: by 10.152.114.65 with SMTP id je1mr398327lab.33.1352969890284; Thu, 15 Nov 2012 00:58:10 -0800 (PST) Original-Received: from vbx ([178.252.98.87]) by mx.google.com with ESMTPS id sj3sm5946768lab.2.2012.11.15.00.58.08 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Nov 2012 00:58:09 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -6.1 (------) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66953 Archived-At: I have an HTTP server running, started from an inferior process. If I evaluate (switch-to-buffer (url-retrieve-synchronously "http://localhost:24959/classes")), it brings me to an empty buffer which has "failed" in the mode line. If I call the asynchronous version, it passes this into the callback: ((:error (error connection-failed failed with code 111 :host localhost :service 24959))) Strangely, it works if I replace "localhost" with "127.0.0.1" or even "localhost.localdomain". But neither Firefox nor curl have a problem with reading from the first version of the URL. In GNU Emacs 24.2.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.6.0) of 2012-11-15 on vbx Bzr revision: 110872 rgm@gnu.org-20121115061756-ncyfcon4pkq7ku57 Windowing system distributor `The X.Org Foundation', version 11.0.11300000 System Description: Ubuntu 12.10 Important settings: value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: recentf-mode: t shell-dirtrack-mode: t helm-match-plugin-mode: t elisp-slime-nav-mode: t paredit-mode: t global-undo-tree-mode: t undo-tree-mode: t global-diff-hl-mode: t diff-hl-mode: t diff-auto-refine-mode: t savehist-mode: t yas-global-mode: t yas-minor-mode: t global-auto-revert-mode: t autopair-global-mode: t cua-mode: t winner-mode: t ido-ubiquitous-mode: t ido-everywhere: t show-paren-mode: t global-ethan-wspace-mode: t ethan-wspace-mode: t ethan-wspace-clean-many-nls-eof-mode: t ethan-wspace-clean-no-nl-eof-mode: t ethan-wspace-clean-eol-mode: t ethan-wspace-clean-tabs-mode: t eproject-mode: t eldoc-mode: t mouse-wheel-mode: 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 column-number-mode: t line-number-mode: t auto-fill-function: do-auto-fill transient-mark-mode: t Recent input: C-x C-g C-x C-g C-; g e m f M-: q M-x r v m M-: M-x z o s s i m a M-x z o s s i m a - j u m p M-x C-g M-x f i n d - l i b z o s s i m a l o c a l h o s t C-M-x C-x C-s M-. M-. M-x r e Recent messages: zossima.el [Gemfile] -scratch- Contacting host: localhost:24959 save-current-buffer: Search failed: " " Contacting host: localhost:24959 save-current-buffer: Search failed: " " Gemfile [zossima.el] -scratch- Load-path shadows: /home/gutov/.emacs.d/site-lisp/smartrep.el/smartrep hides ~/.emacs.d/site-lisp/smartrep /home/gutov/.emacs.d/elpa/magit-20121014.1043/.dir-locals hides /home/gutov/emacs-bzr/emacs-24/lisp/gnus/.dir-locals Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail mule-util find-func mail-utils network-stream starttls url-cache url-http tls mail-parse rfc2231 rfc2047 rfc2045 ietf-drums url-gw url-auth zossima url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap json rvm debug unsafep flymake-ruby flymake-easy flymake ruby-electric ruby-tools subword inf-ruby ruby-mode helm-misc tramp-cache tramp-sh recentf tree-widget wid-edit bow helm-files image-dired tramp tramp-compat tramp-loaddefs shell pcomplete format-spec dired-x dired-aux thingatpt helm-tags helm-locate helm-help helm-external helm-bookmark helm-buffers helm-grep helm-regexp grep helm-elscreen helm-utils compile helm-match-plugin helm helm-config elisp-slime-nav etags paredit saveplace win-switch undo-tree diff diff-hl smartrep face-remap vc-hg vc-git vc-dir ewoc vc vc-dispatcher diff-mode savehist yasnippet autorevert autopair cua-base winner point-stack .emacs-loaddefs server auto-complete-autoloads autopair-autoloads clojure-mode-autoloads coffee-mode-autoloads expand-region-autoloads flymake-coffee-autoloads flymake-ruby-autoloads flymake-easy-autoloads helm-descbinds-autoloads iedit-autoloads iy-go-to-char-autoloads markdown-mode-autoloads move-text-autoloads popup-autoloads rainbow-mode-autoloads ruby-electric-autoloads ruby-tools-autoloads rvm-autoloads sass-mode-autoloads lisp-mnt finder-inf starter-kit-bindings-autoloads windmove starter-kit-lisp-autoloads elisp-slime-nav-autoloads starter-kit-autoloads smex starter-kit-misc warnings ffap url-parse auth-source eieio byte-opt bytecomp byte-compile cconv gnus-util mm-util mail-prsvr password-cache url-vars ido-ubiquitous ido paren starter-kit-defuns uniquify magit-autoloads ido-ubiquitous-autoloads smex-autoloads find-file-in-project-autoloads idle-highlight-mode-autoloads paredit-autoloads switch-window-autoloads typing-autoloads undo-tree-autoloads wgrep-autoloads win-switch-autoloads yaml-mode-autoloads yasnippet-autoloads zossima-autoloads inf-ruby-autoloads package devenv eproject-extras ibuf-macs ibuf-ext ibuffer iswitchb ethan-wspace eproject derived easy-mmode esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg eldoc esh-groups eshell esh-module esh-mode esh-util progmodes mmm mmm-auto mmm-vars mmm-compat cl-macs gv cl keys quail help-mode easymenu hippie hippie-exp comint ansi-color dired winring ring transpose-frame iflipb misc prefs help-at-pt cus-start cus-load edmacro kmacro defuns advice help-fns cl-lib advice-preload time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)