clojurewerkz / spyglass

A Clojure Memcached client (also: Couchbase, Kestrel). Built on top of SpyMemcached, supports ASCII and binary protocols, strives to be 100% feature complete.
http://clojurememcached.info
67 stars 17 forks source link

Allow to set setTimeoutExceptionThreshold on the Connection factory #26

Closed kidpollo closed 8 years ago

kidpollo commented 8 years ago

I came across this error: http://stackoverflow.com/questions/22332203/spymemcached-and-connection-failures

The default value in the java library seems to be 998 which seems kinda crazy to retry 998 times before retrying to connect. Setting this value to a decent number helped us with fixing weird connection issues on long running processes with little/no activity for hours.

orend commented 8 years ago

👍

kidpollo commented 8 years ago

Build on master seems to be failing

michaelklishin commented 8 years ago

Yeah, Travis uses JDK 6 by default.

michaelklishin commented 8 years ago

Thank you.

kidpollo commented 8 years ago

np