diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 97a36444c..0f62c09bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,7 +110,7 @@ jobs: - name: Build ${{ env.PACKAGE_NAME }} + consumers run: | java -version - mvn -B test + mvn -B test -Daws.crt.debugnative=true # check that docs can still build check-docs: diff --git a/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPCClientV2.java b/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPCClientV2.java index 1f2111d6f..d0a3c4888 100644 --- a/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPCClientV2.java +++ b/sdk/greengrass/greengrass-client/src/event-stream-rpc-java/client/software/amazon/awssdk/aws/greengrass/GreengrassCoreIPCClientV2.java @@ -1193,14 +1193,16 @@ public static class Builder { public GreengrassCoreIPCClientV2 build() throws IOException { if (client == null) { - SocketOptions socketOptions = new SocketOptions(); - socketOptions.connectTimeoutMs = 3000; - socketOptions.domain = this.socketDomain; - socketOptions.type = SocketOptions.SocketType.STREAM; String ipcServerSocketPath = this.socketPath; String authToken = this.authToken; try (EventLoopGroup elGroup = new EventLoopGroup(1); - ClientBootstrap clientBootstrap = new ClientBootstrap(elGroup, null)) { + ClientBootstrap clientBootstrap = new ClientBootstrap(elGroup, null); + SocketOptions socketOptions = new SocketOptions()) { + + socketOptions.connectTimeoutMs = 3000; + socketOptions.domain = this.socketDomain; + socketOptions.type = SocketOptions.SocketType.STREAM; + final EventStreamRPCConnectionConfig config = new EventStreamRPCConnectionConfig(clientBootstrap, elGroup, socketOptions, null, ipcServerSocketPath, this.port, GreengrassConnectMessageSupplier.connectMessageSupplier(authToken)); connection = new EventStreamRPCConnection(config); CompletableFuture connected = new CompletableFuture<>(); diff --git a/sdk/pom.xml b/sdk/pom.xml index 23f5e48b0..af916f395 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -42,7 +42,7 @@ software.amazon.awssdk.crt aws-crt - 0.16.4 + 0.16.6 org.slf4j