]> git.eshelyaron.com Git - emacs.git/commitdiff
If the server hangs up while we're talking to it, just `message' the error instead...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 14 Nov 2011 16:09:13 +0000 (17:09 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 14 Nov 2011 16:09:13 +0000 (17:09 +0100)
lisp/url/ChangeLog
lisp/url/url-http.el

index a2a1b4512589e1be45d2a9b4ed91ee7c12bdf0f2..5eb22bb8614aea81b0ceebe6877e8ab71660e29a 100644 (file)
@@ -1,3 +1,9 @@
+2011-11-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * url-http.el (url-http-async-sentinel): If the server hangs up
+       while we're talking to it, just `message' the error instead of
+       throwing an error.
+
 2011-11-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * url-cookie.el (url-cookie-expired-p): Protect against
index 6e192cd5aae7173921bc86be1380322c39936828..e9da4a1010ca6164964d0c82e23259dc3cb2457e 100644 (file)
@@ -1255,7 +1255,11 @@ CBARGS as the arguments."
        (url-http-end-of-document-sentinel proc why))
        ((string= (substring why 0 4) "open")
        (setq url-http-connection-opened t)
-       (process-send-string proc (url-http-create-request)))
+       (condition-case error
+           (process-send-string proc (url-http-create-request))
+         (file-error
+          (setq url-http-connection-opened nil)
+          (message "HTTP error: %s" error))))
        (t
        (setf (car url-callback-arguments)
              (nconc (list :error (list 'error 'connection-failed why