This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-11
Channels
- # adventofcode (116)
- # aleph (10)
- # announcements (2)
- # beginners (67)
- # boot (3)
- # calva (17)
- # cider (8)
- # cljdoc (27)
- # cljsrn (6)
- # clojure (144)
- # clojure-austin (3)
- # clojure-boston (1)
- # clojure-dev (25)
- # clojure-europe (4)
- # clojure-italy (26)
- # clojure-losangeles (4)
- # clojure-nl (28)
- # clojure-russia (1)
- # clojure-uk (34)
- # clojurescript (130)
- # cursive (20)
- # datomic (69)
- # emacs (14)
- # figwheel-main (2)
- # fulcro (31)
- # graphql (3)
- # hyperfiddle (3)
- # jobs (1)
- # jobs-discuss (1)
- # kaocha (1)
- # leiningen (2)
- # lumo (2)
- # nrepl (1)
- # off-topic (182)
- # onyx (5)
- # re-frame (88)
- # reagent (12)
- # reitit (2)
- # ring-swagger (13)
- # shadow-cljs (136)
- # tools-deps (28)
- # vim (4)
right, I'll send an email to aleph google groups so his answer is saved for posterity (on Slack the information will disappear after a few days, and on Twitter, well, it's not the most easily searchable 😉 )
@vale Do you mean aleph http client? server object implements Closeable
, but for the client it’s a bit different… there’s actually no such thing as “client”. you have a connection pool (created by you or default one) which is represented as flow/instrumented-pool
. you can probably try to extract a list of open connections to close them when necessary
i'm not sure if i actually need to close them either... there's a library that uses the apache commons http client internally, but if possible i'd prefer not to have another http dependency if i can just use aleph already.
In that case you need not simply Closable
, you need an instance of https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/client/CloseableHttpClient.html (or an instance of subclass). You can use reify
to define execute
methods, but as far as I understand… all of those methods are supposed to be blocking, right?