Created
February 27, 2015 17:26
-
-
Save mwmitchell/25a6271ae658b5192cfe to your computer and use it in GitHub Desktop.
http_kit_timeout_test.clj
This file contains 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
;; test server blocks for 5 seconds | |
;; this code gets the response successfully | |
;; the time macro reports just a little over 5 seconds | |
(time | |
(let [response (http/get "http://localhost:4567/" {:timeout 3000})] | |
@response)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment