Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for read timeouts

  • Loading branch information...
commit 8da1f8887eaaaebed4da34168a16611040764ed4 1 parent ab4c510
@senior authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  src/clojure_http/client.clj
View
2  src/clojure_http/client.clj
@@ -14,6 +14,7 @@
"Connection" "close"})
(def *connect-timeout* 0)
+(def *read-timeout* 0)
(def *buffer-size* 1024)
@@ -128,6 +129,7 @@ by a server."
"GET")))]
(.setRequestMethod connection method)
(.setConnectTimeout connection *connect-timeout*)
+ (.setReadTimeout connection *read-timeout*)
(.setInstanceFollowRedirects connection *follow-redirects*)
(doseq [[header value] (conj default-headers (or headers {}))]
Please sign in to comment.
Something went wrong with that request. Please try again.