We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d397052 commit 28af6e3Copy full SHA for 28af6e3
src/aleph/netty.clj
@@ -1190,13 +1190,14 @@
1190
(partial coerce-ssl-context ssl-client-context))
1191
1192
(defn ^:no-doc channel-ssl-session [^Channel ch]
1193
- (or (some-> ch
1194
- ^ChannelPipeline (.pipeline)
1195
- ^SslHandler (.get SslHandler)
1196
- .engine
1197
- .getSession)
1198
- ;; Needed for multiplexed child channels (e.g. as present in HTTP/2)
1199
- (recur (.parent ch))))
+ (when ch
+ (or (some-> ch
+ ^ChannelPipeline (.pipeline)
+ ^SslHandler (.get SslHandler)
+ .engine
+ .getSession)
+ ;; Needed for multiplexed child channels (e.g. as present in HTTP/2)
1200
+ (recur (.parent ch)))))
1201
1202
(defn ^:no-doc ssl-handshake-error? [^Throwable ex]
1203
(and (instance? DecoderException ex)
0 commit comments