Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ protected void initChannel(DatagramChannel ch) {

final ChannelHandler quicClientCodec = Http3.newQuicClientCodecBuilder()
.sslContext(context)
.maxIdleTimeout(60, TimeUnit.SECONDS)
.initialMaxData(SETTING_HTTP_MAX_CONTENT_LENGTH.get(Settings.EMPTY).getBytes())
.initialMaxStreamDataBidirectionalLocal(SETTING_H3_MAX_STREAM_LOCAL_LENGTH.get(Settings.EMPTY).getBytes())
.initialMaxStreamDataBidirectionalRemote(SETTING_H3_MAX_STREAM_REMOTE_LENGTH.get(Settings.EMPTY).getBytes())
Expand All @@ -518,6 +519,7 @@ protected void initChannel(DatagramChannel ch) {
@Override
Channel prepare(Bootstrap clientBootstrap, Channel channel) throws InterruptedException {
final QuicChannel quicChannel = QuicChannel.newBootstrap(channel)
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 30000) // 30 seconds
.handler(new Http3ClientConnectionHandler())
.remoteAddress(channel.remoteAddress())
.connect()
Expand Down
Loading