all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#10891: bug fix lisp/url/url-http.el
@ 2012-02-26 17:21 Devon Sean McCullough
  2012-03-11  9:44 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Devon Sean McCullough @ 2012-02-26 17:21 UTC (permalink / raw)
  To: 10891

(let ((url-gateway-unplugged t))
  (url-retrieve-synchronously "http://gnu.org"))

bombs
	Wrong type argument: processp, nil

should be
	Could not create connection to gnu.org:80

		Peace
			--Devon

PS: Here's the fix

--- url-http.el.~1~	2010-04-03 18:26:11.000000000 -0400
+++ url-http.el	2012-02-26 10:53:27.000000000 -0500
@@ -119,9 +120,7 @@
 	(url-http-debug "Reusing existing connection: %s:%d" host port)
       (url-http-debug "Contacting host: %s:%d" host port))
     (url-lazy-message "Contacting host: %s:%d" host port)
-    (url-http-mark-connection-as-busy
-     host port
-     (or found
+    (let ((conn (or found
          (let ((buf (generate-new-buffer " *url-http-temp*")))
            ;; `url-open-stream' needs a buffer in which to do things
            ;; like authentication.  But we use another buffer afterwards.
@@ -132,7 +131,9 @@
 		   ;; Drop the temp buffer link before killing the buffer.
 		   (set-process-buffer proc nil))
                  proc)
-             (kill-buffer buf)))))))
+                        (kill-buffer buf))))))
+      (and conn
+	   (url-http-mark-connection-as-busy host port conn)))))
 
 ;; Building an HTTP request
 (defun url-http-user-agent-string ()
 





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#10891: bug fix lisp/url/url-http.el
  2012-02-26 17:21 bug#10891: bug fix lisp/url/url-http.el Devon Sean McCullough
@ 2012-03-11  9:44 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2012-03-11  9:44 UTC (permalink / raw)
  To: Devon Sean McCullough; +Cc: 10891

Devon Sean McCullough <emacs-hacker2012@jovi.net> writes:

> (let ((url-gateway-unplugged t))
>   (url-retrieve-synchronously "http://gnu.org"))
>
> bombs
> 	Wrong type argument: processp, nil
>
> should be
> 	Could not create connection to gnu.org:80
>
> PS: Here's the fix

Thanks.  I've committed a slightly tweaked version of the fix to trunk.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-11  9:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26 17:21 bug#10891: bug fix lisp/url/url-http.el Devon Sean McCullough
2012-03-11  9:44 ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.