Skip to content

Instantly share code, notes, and snippets.

@ruseel
Created December 2, 2016 05:25
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 ruseel/0154c65a3ea6d46b844bf3a3c51b1bd3 to your computer and use it in GitHub Desktop.
Save ruseel/0154c65a3ea6d46b844bf3a3c51b1bd3 to your computer and use it in GitHub Desktop.
clj-http로 keep-alive를 이용해서 요청하기
(time (doseq [conn-mgr [(clj-http.conn-mgr/make-reusable-conn-manager {})]]
(dotimes [_ 2]
(clj-http.client/request {:method :get
:url "https://www.valuepotion.com/"
:connection-manager conn-mgr})
nil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment