Closed Tebro closed 4 years ago
Hi there,
Sorry, only have a minute to look at this and not sure I understand- could you please clarify what the current+expected behaviour is? Thanks!
Closing due to inactivity, please feel free to re-open if someone's interested in following up 👍
I believe what was meant is that this:
(def server1-conn {:spec {:uri "rediss://<redis-connection-uri>"}})
is not the same as this:
(def server1-conn {:spec {:uri "rediss://<redis-connection-uri>"
:ssl-fn :default}})
That is, you must explicitly set ssl-fn
to :default
. That you are using SSL is not detected from the rediss
protocol in the URI.
Thanks @danielytics 👍
To clarify then: the current behaviour is as intended, and is correctly documented in the wcar
macro:
Optional `ssl-fn` conn opt takes and returns a `java.net.Socket`:
(fn [{:keys [^Socket socket host port]}]) -> ^Socket
`:default` => use `taoensso.carmine.connections/default-ssl-fn`.
"default" in this context doesn't imply it's enabled by default, it's just the default ssl fn if you want ssl (which is optional).
Hope that helps!
When setting up the spec for a connection to Redis that uses SSL the ssl-fn option is not optional / does not default to :default.