Handling timeouts

15 views
Skip to first unread message

Sam Raker

unread,
Nov 18, 2014, 11:38:38 AM11/18/14
to clojure...@googlegroups.com
I've recently refactored my code to connect to my local CouchDB server over my home network (passing `get-db` a url with an ip address + port + db, as opposed to just the db name). Since doing so, I've been getting an irritating error:

ConnectTimeoutException Connect to <ip>:<port> timed out  org.apache.http.conn.scheme.PlainSocketFactory.connectSocket (PlainSocketFactory.java:119)


My local network is admittedly a bit shaky, but I'd like to be able to do connect like this so I could theoretically run my code in multiple places and have each instance write to the same DB. Any suggestions on best handling this kind of situation? I'd really rather not have to wrap everything that hits the DB in try/catch if I can possibly avoid it.
Reply all
Reply to author
Forward
0 new messages