Fix url-retrieve-synchronously on very short timeouts
* lisp/url/url.el (url-retrieve-synchronously): Don't kill the process buffer unless we made one (bug#58218). This makes HTTP free connection marking work on premature timeouts.
This commit is contained in:
parent
82860cb7f7
commit
41234a21bf
1 changed files with 3 additions and 1 deletions
|
@ -280,7 +280,9 @@ how long to wait for a response before giving up."
|
|||
;; Querying over consumer internet in the US takes 100
|
||||
;; ms, so split the difference.
|
||||
(accept-process-output nil 0.05)))
|
||||
(unless (eq data-buffer proc-buffer)
|
||||
;; Kill the process buffer on redirects.
|
||||
(when (and data-buffer
|
||||
(not (eq data-buffer proc-buffer)))
|
||||
(let (kill-buffer-query-functions)
|
||||
(kill-buffer proc-buffer)))))
|
||||
data-buffer))
|
||||
|
|
Loading…
Add table
Reference in a new issue