Skip to content

Instantly share code, notes, and snippets.

@flyingmachine
Created October 14, 2014 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save flyingmachine/b56a4bf2eebfd1791c78 to your computer and use it in GitHub Desktop.
Save flyingmachine/b56a4bf2eebfd1791c78 to your computer and use it in GitHub Desktop.
http-kit client hanging
(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