GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update to latest netty-tcnative release by normanmaurer · Pull Request #17056 · netty/netty

Update to latest netty-tcnative release #17056

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.

Sign up for GitHub

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

Merged
chrisvest merged 13 commits into 4.2 from tc
Jul 22, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

Update to latest netty-tcnative release #17056

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
13 commits
Select commit Hold shift + click to select a range
b55a45b
Update to latest netty-tcnative release
normanmaurer Jul 6, 2026
f9d70d5
We need openssl 3.x
normanmaurer Jul 6, 2026
5182632
Build openssl 3
normanmaurer Jul 7, 2026
278a013
Missing perl packages
normanmaurer Jul 8, 2026
c7e1db3
LD_LIBRARY_PATH
normanmaurer Jul 8, 2026
1d1418a
LD_LIBRARY_PATH
normanmaurer Jul 8, 2026
2692196
Try to make test less flaky
normanmaurer Jul 8, 2026
77f5c1c
Add debug output to SSLEngineTest
chrisvest Jul 20, 2026
448b78b
More robust message drain loop in SSLEngineTest#writeAndVerifyReceived
chrisvest Jul 20, 2026
978f5d3
Align CentOS devcontainer with updated build docker image
chrisvest Jul 20, 2026
f1487ca
Disable stricter certificate checking during the handshake
chrisvest Jul 21, 2026
7c9b8ad
Merge branch '4.2' into tc
chrisvest Jul 21, 2026
a9e922b
Bump the tcnative version to the latest
chrisvest Jul 21, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

28 changes: 25 additions & 3 deletions 28 .devcontainer/centos7/Dockerfile
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM --platform=linux/amd64 centos:7.9.2009

ARG openssl_version=3.6.1
ARG openssl_sha256=b1bfedcd5b289ff22aee87c9d600f515767ebf45f77168cb6d64f231f518a82e
ENV OPENSSL_VERSION $openssl_version
ENV OPENSSL_SHA256 $openssl_sha256

ENV SOURCE_DIR=/root/source
ENV LIBS_DIR=/root/libs
ENV CMAKE_VERSION_BASE=3.26
Expand All @@ -26,6 +31,10 @@ RUN yum install -y \
make \
openssl-devel \
perl \
perl-IPC-Cmd \
perl-Time-Piece \
perl-parent \
perl-devel \
tar \
unzip \
wget \
Expand All @@ -44,13 +53,25 @@ RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.cent
RUN yum -y install devtoolset-11-gcc devtoolset-11-gcc-c++
RUN echo 'source /opt/rh/devtoolset-11/enable' >> ~/.bashrc

RUN echo "export CMAKE_VERSION='$CMAKE_VERSION'" >> ~/.bashrc
RUN echo "export NINJA_VERSION='$NINJA_VERSION'" >> ~/.bashrc
RUN echo "export GO_VERSION='$GO_VERSION'" >> ~/.bashrc
RUN wget -q https://github.com/ninja-build/ninja/releases/download/v$NINJA_VERSION/ninja-linux.zip && unzip ninja-linux.zip && mkdir -p /opt/ninja-$NINJA_VERSION/bin && mv ninja /opt/ninja-$NINJA_VERSION/bin && echo 'PATH=/opt/ninja-$NINJA_VERSION/bin:$PATH' >> ~/.bashrc
RUN wget -q https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz && tar zxf go$GO_VERSION.linux-amd64.tar.gz && mv go /opt/ && echo 'PATH=/opt/go/bin:$PATH' >> ~/.bashrc && echo 'export GOROOT=/opt/go/' >> ~/.bashrc
RUN curl -s https://cmake.org/files/v$CMAKE_VERSION_BASE/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz --output cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && tar zxf cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && mv cmake-$CMAKE_VERSION-linux-x86_64 /opt/ && echo 'PATH=/opt/cmake-$CMAKE_VERSION-linux-x86_64/bin:$PATH' >> ~/.bashrc

# Build OpenSSL 3.x from source using devtoolset-11
RUN set -x && \
source /opt/rh/devtoolset-11/enable && \
# --no-check-certificate: CentOS 6 ships with outdated CA bundles that can't verify modern GitHub TLS certs
wget --no-check-certificate https://github.com/openssl/openssl/releases/download/openssl-$OPENSSL_VERSION/openssl-$OPENSSL_VERSION.tar.gz && \
echo "$OPENSSL_SHA256 openssl-$OPENSSL_VERSION.tar.gz" | sha256sum -c - && \
tar xvf openssl-$OPENSSL_VERSION.tar.gz && \
(cd openssl-$OPENSSL_VERSION && \
# no-asm: devtoolset-11 on CentOS 7 cannot reliably compile OpenSSL's hand-tuned x86_64 assembly
./Configure linux-x86_64 --prefix=/opt/openssl-$OPENSSL_VERSION --libdir=lib shared no-asm no-apps && \
make -j1 install_sw) && \
rm -rf openssl-$OPENSSL_VERSION openssl-$OPENSSL_VERSION.tar.gz

RUN echo 'export LD_LIBRARY_PATH=/opt/openssl-$OPENSSL_VERSION/lib' >> ~/.bashrc

# Downloading and installing SDKMAN!
RUN curl -s "https://beta.sdkman.io?ci=true" | bash

Expand All @@ -73,6 +94,7 @@ RUN echo 'PATH=$PATH:$HOME/.cargo/bin' >> ~/.bashrc
# Prepare our own build
ENV PATH=/root/.sdkman/candidates/maven/current:$PATH
ENV JAVA_HOME=/root/.sdkman/candidates/java/current
ENV LD_LIBRARY_PATH=/opt/openssl-$OPENSSL_VERSION/lib

# Cleanup
RUN rm -rf $SOURCE_DIR
Expand Down
2 changes: 1 addition & 1 deletion 2 bom/pom.xml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

<properties>
<!-- Keep in sync with ../pom.xml -->
<tcnative.version>2.0.78.Final</tcnative.version>
<tcnative.version>2.0.81.Final</tcnative.version>
</properties>

<build>
Expand Down
21 changes: 21 additions & 0 deletions 21 docker/Dockerfile.centos6
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM --platform=linux/amd64 centos:6.10

ARG openssl_version=3.6.1
ARG openssl_sha256=b1bfedcd5b289ff22aee87c9d600f515767ebf45f77168cb6d64f231f518a82e
ENV OPENSSL_VERSION $openssl_version
ENV OPENSSL_SHA256 $openssl_sha256

# Update as we need to use the vault now.
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=https:\/\/linuxsoft.cern.ch\/centos-vault\/\/6.10\//g' /etc/yum.repos.d/CentOS-Base.repo

Expand All @@ -21,6 +26,22 @@ RUN yum install -y \
wget \
zip

RUN yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++
RUN echo 'source /opt/rh/devtoolset-9/enable' >> ~/.bashrc

# Build OpenSSL 3.x from source using devtoolset-9
RUN set -x && \
source /opt/rh/devtoolset-9/enable && \
# --no-check-certificate: CentOS 6 ships with outdated CA bundles that can't verify modern GitHub TLS certs
wget --no-check-certificate https://github.com/openssl/openssl/releases/download/openssl-$OPENSSL_VERSION/openssl-$OPENSSL_VERSION.tar.gz && \
echo "$OPENSSL_SHA256 openssl-$OPENSSL_VERSION.tar.gz" | sha256sum -c - && \
tar xvf openssl-$OPENSSL_VERSION.tar.gz && \
(cd openssl-$OPENSSL_VERSION && \
# no-asm: devtoolset-9 on CentOS 6 cannot reliably compile OpenSSL's hand-tuned x86_64 assembly
./Configure linux-x86_64 --prefix=/opt/openssl-$OPENSSL_VERSION --libdir=lib shared no-asm no-apps && \
make -j1 install_sw) && \
rm -rf openssl-$OPENSSL_VERSION openssl-$OPENSSL_VERSION.tar.gz


# Downloading and installing SDKMAN!
RUN curl -s "https://beta.sdkman.io?ci=true" | bash
Expand Down
25 changes: 25 additions & 0 deletions 25 docker/Dockerfile.centos7
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM --platform=linux/amd64 centos:7.9.2009

ARG openssl_version=3.6.1
ARG openssl_sha256=b1bfedcd5b289ff22aee87c9d600f515767ebf45f77168cb6d64f231f518a82e
ENV OPENSSL_VERSION $openssl_version
ENV OPENSSL_SHA256 $openssl_sha256

ENV SOURCE_DIR=/root/source
ENV LIBS_DIR=/root/libs
ENV CMAKE_VERSION_BASE=3.26
Expand All @@ -26,6 +31,10 @@ RUN yum install -y \
make \
openssl-devel \
perl \
perl-IPC-Cmd \
perl-Time-Piece \
perl-parent \
perl-devel \
tar \
unzip \
wget \
Expand All @@ -48,6 +57,21 @@ RUN wget -q https://github.com/ninja-build/ninja/releases/download/v$NINJA_VERSI
RUN wget -q https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz && tar zxf go$GO_VERSION.linux-amd64.tar.gz && mv go /opt/ && echo 'PATH=/opt/go/bin:$PATH' >> ~/.bashrc && echo 'export GOROOT=/opt/go/' >> ~/.bashrc
RUN curl -s https://cmake.org/files/v$CMAKE_VERSION_BASE/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz --output cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && tar zxf cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && mv cmake-$CMAKE_VERSION-linux-x86_64 /opt/ && echo 'PATH=/opt/cmake-$CMAKE_VERSION-linux-x86_64/bin:$PATH' >> ~/.bashrc

# Build OpenSSL 3.x from source using devtoolset-11
RUN set -x && \
source /opt/rh/devtoolset-11/enable && \
# --no-check-certificate: CentOS 6 ships with outdated CA bundles that can't verify modern GitHub TLS certs
wget --no-check-certificate https://github.com/openssl/openssl/releases/download/openssl-$OPENSSL_VERSION/openssl-$OPENSSL_VERSION.tar.gz && \
echo "$OPENSSL_SHA256 openssl-$OPENSSL_VERSION.tar.gz" | sha256sum -c - && \
tar xvf openssl-$OPENSSL_VERSION.tar.gz && \
(cd openssl-$OPENSSL_VERSION && \
# no-asm: devtoolset-11 on CentOS 7 cannot reliably compile OpenSSL's hand-tuned x86_64 assembly
./Configure linux-x86_64 --prefix=/opt/openssl-$OPENSSL_VERSION --libdir=lib shared no-asm no-apps && \
make -j1 install_sw) && \
rm -rf openssl-$OPENSSL_VERSION openssl-$OPENSSL_VERSION.tar.gz

RUN echo 'export LD_LIBRARY_PATH=/opt/openssl-$OPENSSL_VERSION/lib' >> ~/.bashrc

# Downloading and installing SDKMAN!
RUN curl -s "https://beta.sdkman.io?ci=true" | bash

Expand All @@ -70,6 +94,7 @@ RUN echo 'PATH=$PATH:$HOME/.cargo/bin' >> ~/.bashrc
# Prepare our own build
ENV PATH=/root/.sdkman/candidates/maven/current:$PATH
ENV JAVA_HOME=/root/.sdkman/candidates/java/current
ENV LD_LIBRARY_PATH=/opt/openssl-$OPENSSL_VERSION/lib

# Cleanup
RUN rm -rf $SOURCE_DIR
Expand Down
33 changes: 24 additions & 9 deletions 33 handler/src/test/java/io/netty/handler/ssl/SSLEngineTest.java
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1334,20 +1334,35 @@ private static void verifyApplicationLevelProtocol(Channel channel, String expec

private static void writeAndVerifyReceived(ByteBuf message, Channel sendChannel, CountDownLatch receiverLatch,
MessageReceiver receiver) throws Exception {
List<ByteBuf> dataCapture = null;
ByteBuf buf = null;
try {
assertTrue(sendChannel.writeAndFlush(message).await(10, TimeUnit.SECONDS));
receiverLatch.await(5, TimeUnit.SECONDS);
message.resetReaderIndex();
assertTrue(sendChannel.writeAndFlush(message.duplicate())
.await(10, TimeUnit.SECONDS));
receiverLatch.await(10, TimeUnit.SECONDS);
assertFalse(receiver.messages.isEmpty());
dataCapture = new ArrayList<ByteBuf>();
receiver.messages.drainTo(dataCapture);
assertEquals(message, dataCapture.get(0));

buf = Unpooled.buffer();
ByteBuf buffer = receiver.messages.take();
for (;;) {
buf.writeBytes(buffer);
buffer.release();
if (buf.readableBytes() < message.readableBytes()) {
buffer = receiver.messages.poll(1, TimeUnit.SECONDS);
if (buffer == null) {
break;
}
} else {
break;
}
}
assertEquals(message, buf);
} finally {
if (dataCapture != null) {
for (ByteBuf data : dataCapture) {
if (buf != null) {
buf.release();
for (ByteBuf data : receiver.messages) {
data.release();
}
receiver.messages.clear();
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions 6 pom.xml
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
</activation>
<properties>
<argLine.java9.extras />
<argLine.java9>${argLine.java9.extras}</argLine.java9>
<argLine.java9>${argLine.java9.extras} -Djdk.tls.SunX509KeyManager.certChecking=false</argLine.java9>
<forbiddenapis.skip>true</forbiddenapis.skip>
<!-- We need to use 1.8 as otherwise default methods are not picked up and so result in compile errors for
our EventExecutorGroup implementations
Expand Down Expand Up @@ -598,7 +598,7 @@
<id>boringssl-snapshot</id>
<properties>
<tcnative.artifactId>netty-tcnative-boringssl-static</tcnative.artifactId>
<tcnative.version>2.0.79.Final-SNAPSHOT</tcnative.version>
<tcnative.version>2.0.82.Final-SNAPSHOT</tcnative.version>
<tcnative.classifier>${os.detected.classifier}</tcnative.classifier>
</properties>

Expand Down Expand Up @@ -744,7 +744,7 @@
<os.detection.classifierWithLikes>fedora,suse,arch</os.detection.classifierWithLikes>
<tcnative.artifactId>netty-tcnative</tcnative.artifactId>
<!-- Keep in sync with bom/pom.xml -->
<tcnative.version>2.0.78.Final</tcnative.version>
<tcnative.version>2.0.81.Final</tcnative.version>
<tcnative.classifier>${os.detected.classifier}</tcnative.classifier>
<conscrypt.groupId>org.conscrypt</conscrypt.groupId>
<conscrypt.artifactId>conscrypt-openjdk-uber</conscrypt.artifactId>
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.