Fork me on GitHub
#clojure
<
2023-03-07
>
Tom H.06:03:55

I’m using Amazonica to call out to s3 but eventually calls start failing with “Unable to execute HTTP request: Timeout waiting for connection from pool”. Probably the issue is not closing an input stream somewhere and filling up the pool but looking to get some visibility into what’s going on with the pool I’ve been trying to work out how to call getConnectionTTL() of https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/ClientConfiguration.html I found client-config https://github.com/mcohen01/amazonica/blob/master/src/amazonica/core.clj#LL46C44-L46C44 but it’s private, am I going about this in the wrong way?

Tom H.06:03:34

I’ve enabled sdk metrics by setting a java flag as per https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/metrics/AwsSdkMetrics.html#enableDefaultMetrics-- and I’m seeing them come up in my Cloudwatch but I can’t work out how to access the instances of that class at runtime either

Geekingfrog10:03:49

I'd like to test an unreleased version of a lib with some modifications. I have the code locally, and I would like to use leiningen's checkout dependency to work on that. However, this new dependency uses deps.edn and it seems leiningen cannot find it. Is there a way other than creating a project.clj for this lib?

Rupert (All Street)12:03:17

You may be able to install the dependency into your local .m2 cache and then depend on it from your project.clj. You can usally still work with both projects in the REPl (e.g. in cider use sesman-link-with-repl in a namespace after you start the repl) You may be able to manually create a project.clj from the deps.edn file if its not a complicated one. A workaround might be to add all the dependencies from deps.edn into your project.clj and the add the source path to project.clj too. (https://github.com/technomancy/leiningen/blob/github/sample.project.clj)

borkdude13:03:31

you can also create a pom.xml with -Spom

🙌 2
borkdude13:03:36

and then lein would be able to find it I think (not sure)