File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
modules/transport-netty4/src/test/java/org/opensearch/http/netty4 Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -506,6 +506,7 @@ protected void initChannel(DatagramChannel ch) {
506506
507507 final ChannelHandler quicClientCodec = Http3 .newQuicClientCodecBuilder ()
508508 .sslContext (context )
509+ .maxIdleTimeout (60 , TimeUnit .SECONDS )
509510 .initialMaxData (SETTING_HTTP_MAX_CONTENT_LENGTH .get (Settings .EMPTY ).getBytes ())
510511 .initialMaxStreamDataBidirectionalLocal (SETTING_H3_MAX_STREAM_LOCAL_LENGTH .get (Settings .EMPTY ).getBytes ())
511512 .initialMaxStreamDataBidirectionalRemote (SETTING_H3_MAX_STREAM_REMOTE_LENGTH .get (Settings .EMPTY ).getBytes ())
@@ -518,6 +519,7 @@ protected void initChannel(DatagramChannel ch) {
518519 @ Override
519520 Channel prepare (Bootstrap clientBootstrap , Channel channel ) throws InterruptedException {
520521 final QuicChannel quicChannel = QuicChannel .newBootstrap (channel )
522+ .option (ChannelOption .CONNECT_TIMEOUT_MILLIS , 30000 ) // 30 seconds
521523 .handler (new Http3ClientConnectionHandler ())
522524 .remoteAddress (channel .remoteAddress ())
523525 .connect ()
You can’t perform that action at this time.
0 commit comments