diff options
| author | Lars Magne Ingebrigtsen | 2011-09-13 19:18:08 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-09-13 19:18:08 +0200 |
| commit | ad87170ff365ce45fca51f24ef01119f5c5fb7d2 (patch) | |
| tree | 9de900a24beb85b3454d97895391da67230c3603 | |
| parent | ef8ef9fb80786849815c5142ec5319fba77ecd9f (diff) | |
| download | emacs-ad87170ff365ce45fca51f24ef01119f5c5fb7d2.tar.gz emacs-ad87170ff365ce45fca51f24ef01119f5c5fb7d2.zip | |
Fix URL connection failing handling.
* url-http.el (url-http-find-free-connection): If there was an
error on connect, make sure the user isn't bothered with
irrelevant questions.
| -rw-r--r-- | lisp/url/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 5714179fcfe..8ad0a8ee43f 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-09-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * url-http.el (url-http-find-free-connection): If there was an | ||
| 4 | error on connect, make sure the user isn't bothered with | ||
| 5 | irrelevant questions. | ||
| 6 | |||
| 1 | 2011-08-07 Chong Yidong <cyd@stupidchicken.com> | 7 | 2011-08-07 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 8 | ||
| 3 | * url-http.el (url-http-parse-headers): For HTTP 301/302/307, | 9 | * url-http.el (url-http-parse-headers): For HTTP 301/302/307, |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index a21aed21436..0ba3aa2c5fe 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -180,6 +180,10 @@ request.") | |||
| 180 | ;; Drop the temp buffer link before killing the buffer. | 180 | ;; Drop the temp buffer link before killing the buffer. |
| 181 | (set-process-buffer proc nil)) | 181 | (set-process-buffer proc nil)) |
| 182 | proc) | 182 | proc) |
| 183 | ;; If there was an error on connect, make sure we don't | ||
| 184 | ;; get queried. | ||
| 185 | (when (get-buffer-process buf) | ||
| 186 | (set-process-query-on-exit-flag (get-buffer-process buf) nil)) | ||
| 183 | (kill-buffer buf))))))) | 187 | (kill-buffer buf))))))) |
| 184 | 188 | ||
| 185 | ;; Building an HTTP request | 189 | ;; Building an HTTP request |