Created
October 14, 2014 14:26
-
-
Save flyingmachine/b56a4bf2eebfd1791c78 to your computer and use it in GitHub Desktop.
http-kit client hanging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn app [req] | |
{:status 200 | |
:headers {"Last-Modified" "Wed, 28 May 2014 19:41:37 GMT", "Content-Length" "2"} | |
:body "ok"}) | |
(org.httpkit.server/run-server app {:port 7071}) | |
@(org.httpkit.client/get "http://localhost:7071" {:timeout 500}) | |
; => {:opts {:url "http://localhost:7071", :method :get, :timeout 500}, :error #<TimeoutException org.httpkit.client.TimeoutException: read timeout: 500ms>} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment