Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dawidd6/action-download-artifact from 2.14.0 to 2.26.0 #54

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/ci-prb-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
os: [ ubuntu-latest ]
steps:
- name: Download Artifacts
uses: dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-prq-reports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
java: [ 8, 11 ]
steps:
- name: Download Artifacts
uses: dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }}
Expand All @@ -35,7 +35,7 @@ jobs:
java: [ 8, 11 ]
steps:
- name: Download Artifacts
uses: dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }}
Expand All @@ -58,7 +58,7 @@ jobs:
java: [ 8, 11 ]
steps:
- name: Download Artifacts
uses: dawidd6/action-download-artifact@b9571484721e8187f1fd08147b497129f8972c74
uses: dawidd6/action-download-artifact@5e780fc7bbd0cac69fc73271ed86edf5dcb72d67
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
group=io.servicetalk
version=0.40.0-SNAPSHOT

nettyVersion=4.1.63.Final
nettyVersion=4.1.64.Final-SNAPSHOT
tcnativeVersion=2.0.38.Final

jsr305Version=3.0.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2020 Apple Inc. and the ServiceTalk project authors
* Copyright © 2019-2021 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -28,7 +28,6 @@
import java.util.function.BiPredicate;

import static io.netty.handler.codec.http2.Http2Error.PROTOCOL_ERROR;
import static io.netty.handler.codec.http2.Http2FrameCodecBuilder.forClient;
import static io.servicetalk.http.netty.H2ServerParentChannelInitializer.initFrameLogger;

final class H2ClientParentChannelInitializer implements ChannelInitializer {
Expand All @@ -41,7 +40,7 @@ final class H2ClientParentChannelInitializer implements ChannelInitializer {

@Override
public void init(final Channel channel) {
final Http2FrameCodecBuilder multiplexCodecBuilder = forClient()
final Http2FrameCodecBuilder multiplexCodecBuilder = new OptimizedHttp2FrameCodecBuilder(false)
// We do not want close to trigger graceful closure (go away), instead when user triggers a graceful
// close, we do the appropriate go away handling.
.decoupleCloseAndGoAway(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright © 2019-2020 Apple Inc. and the ServiceTalk project authors
* Copyright © 2019-2021 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -26,7 +26,6 @@
import java.util.function.BiPredicate;
import javax.annotation.Nullable;

import static io.netty.handler.codec.http2.Http2FrameCodecBuilder.forServer;
import static io.servicetalk.logging.slf4j.internal.Slf4jFixedLevelLoggers.newLogger;

final class H2ServerParentChannelInitializer implements ChannelInitializer {
Expand All @@ -42,7 +41,7 @@ final class H2ServerParentChannelInitializer implements ChannelInitializer {

@Override
public void init(final Channel channel) {
final Http2FrameCodecBuilder multiplexCodecBuilder = forServer()
final Http2FrameCodecBuilder multiplexCodecBuilder = new OptimizedHttp2FrameCodecBuilder(true)
// We do not want close to trigger graceful closure (go away), instead when user triggers a graceful
// close, we do the appropriate go away handling.
.decoupleCloseAndGoAway(true)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
* Copyright © 2021 Apple Inc. and the ServiceTalk project authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.servicetalk.http.netty;

import io.netty.handler.codec.http2.DefaultHttp2Connection;
import io.netty.handler.codec.http2.DefaultHttp2RemoteFlowController;
import io.netty.handler.codec.http2.Http2FrameCodec;
import io.netty.handler.codec.http2.Http2FrameCodecBuilder;
import io.netty.handler.codec.http2.Http2RemoteFlowController;
import io.netty.handler.codec.http2.UniformStreamByteDistributor;

/**
* Optimized variant of {@link Http2FrameCodecBuilder} that allows us to use {@link UniformStreamByteDistributor}
* for {@link Http2RemoteFlowController}.
*/
final class OptimizedHttp2FrameCodecBuilder extends Http2FrameCodecBuilder {

private final boolean server;

/**
* Creates a new instance.
*
* @param server {@code true} if for server, {@code false} otherwise
*/
OptimizedHttp2FrameCodecBuilder(final boolean server) {
this.server = server;
}

@Override
public boolean isServer() {
return server;
}

@Override
public Http2FrameCodec build() {
final DefaultHttp2Connection connection = new DefaultHttp2Connection(isServer(), maxReservedStreams());
connection.remote().flowController(new DefaultHttp2RemoteFlowController(connection,
new UniformStreamByteDistributor(connection)));
connection(connection);
return super.build();
}
}