                    (or keystore trust-store)
                    (get-keystore-scheme-registry config)
 
-                   :else regular-strategy-registry)
+                   :else @regular-strategy-registry)
         io-reactor (make-ioreactor io-config)
         protocol-handler (HttpAsyncRequestExecutor.)
         io-event-dispatch (DefaultHttpClientIODispatch. protocol-handler

                             (opt req :insecure)
                             @insecure-strategy-registry

                             :else regular-strategy-registry)
        io-reactor (make-ioreactor {:shutdown-grace-period 1})]
    (doto (PoolingNHttpClientConnectionManager. io-reactor registry)
      (.setMaxTotal 1))))

       (.build))))

(def ^:private regular-scheme-registry
  (delay (-> (RegistryBuilder/create)
             (.register "http" (PlainConnectionSocketFactory/getSocketFactory))
             (.register "https" @secure-ssl-socket-factory)
             (.build))))

(def ^:private regular-strategy-registry
  (delay (-> (RegistryBuilder/create)
             (.register "http" NoopIOSessionStrategy/INSTANCE)
             (.register "https" @secure-strategy)
             (.build))))

(defn ^Registry get-custom-scheme-registry
  [{:keys [context verifier]}]
