Permalink
Browse files

Added support for read timeouts

  • Loading branch information...
1 parent ab4c510 commit 8da1f8887eaaaebed4da34168a16611040764ed4 @senior committed Aug 17, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 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 {}))]

0 comments on commit 8da1f88

Please sign in to comment.