Closed candera closed 9 years ago
This code hangs forever:
(let [client (http/create-client :request-timeout 1500 :connection-timeout 1000) req (http-request/prepare-request :get "http://nosuch.server/") resp (http-request/execute-request client req :error (fn [_ _] (throw (Exception. "boom!"))))] (http/await resp))
It appears that the exception in the :error function eliminates any chance of the underlying promise ever being delivered. It would be nice if http.async.client would protect against bugs in the :error function.
Thanks for the bug report. I've pushed v0.5.3-SNAPSHOT to clojars. Please test it and let me know if it works for you.
This bug is fixed in version 0.5.3 and later.
This code hangs forever:
It appears that the exception in the :error function eliminates any chance of the underlying promise ever being delivered. It would be nice if http.async.client would protect against bugs in the :error function.