File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 38
38
EpollEventLoopGroup
39
39
EpollServerSocketChannel
40
40
EpollSocketChannel)
41
- (io.netty.channel.embedded
42
- EmbeddedChannel)
43
41
(io.netty.channel.group
44
42
ChannelGroup
45
43
DefaultChannelGroup)
195
193
" Default timeout in seconds to wait for graceful shutdown complete"
196
194
15 )
197
195
196
+ (def ^:const default-connect-timeout
197
+ " Netty's default connect timeout."
198
+ ; ; io.netty.channel.DefaultChannelConfig/DEFAULT_CONNECT_TIMEOUT
199
+ 30000 )
200
+
198
201
(def ^:const ^:no-doc byte-array-class (Class/forName " [B" ))
199
202
200
203
#_
1518
1521
(ssl-handler ch ssl-ctx))))
1519
1522
(pipeline-builder p))))
1520
1523
1521
- (def ^:const
1522
- default-connect-timeout
1523
- " Netty's default connect timeout."
1524
- ; ; This hack is necessary due to io.netty.channel.DefaultChannelConfig/DEFAULT_CONNECT_TIMEOUT
1525
- ; ; being private.
1526
- (with-open [c (EmbeddedChannel. )]
1527
- (.getConnectTimeoutMillis (.config c))))
1528
-
1529
1524
(defn ^:no-doc create-client-chan
1530
1525
" Returns a deferred containing a new Channel.
1531
1526
You can’t perform that action at this time.
0 commit comments