From cdc9559080462a5e33e093095373479e7014a7d6 Mon Sep 17 00:00:00 2001 From: dilanSachi Date: Fri, 19 Jan 2024 11:48:45 +0530 Subject: [PATCH 1/3] [Automated] Update the native jar versions --- ballerina/Ballerina.toml | 6 +++--- ballerina/CompilerPlugin.toml | 2 +- ballerina/Dependencies.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 82ec499f11..6505a267e0 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,7 +1,7 @@ [package] org = "ballerina" name = "http" -version = "2.10.5" +version = "2.10.6" authors = ["Ballerina"] keywords = ["http", "network", "service", "listener", "client"] repository = "https://github.com/ballerina-platform/module-ballerina-http" @@ -16,8 +16,8 @@ graalvmCompatible = true [[platform.java17.dependency]] groupId = "io.ballerina.stdlib" artifactId = "http-native" -version = "2.10.5" -path = "../native/build/libs/http-native-2.10.5.jar" +version = "2.10.6" +path = "../native/build/libs/http-native-2.10.6-SNAPSHOT.jar" [[platform.java17.dependency]] groupId = "io.ballerina.stdlib" diff --git a/ballerina/CompilerPlugin.toml b/ballerina/CompilerPlugin.toml index 6229522ec1..1172e0bbc2 100644 --- a/ballerina/CompilerPlugin.toml +++ b/ballerina/CompilerPlugin.toml @@ -3,4 +3,4 @@ id = "http-compiler-plugin" class = "io.ballerina.stdlib.http.compiler.HttpCompilerPlugin" [[dependency]] -path = "../compiler-plugin/build/libs/http-compiler-plugin-2.10.5.jar" +path = "../compiler-plugin/build/libs/http-compiler-plugin-2.10.6-SNAPSHOT.jar" diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index afcb80ecc4..321c5e85c0 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -76,7 +76,7 @@ modules = [ [[package]] org = "ballerina" name = "http" -version = "2.10.5" +version = "2.10.6" dependencies = [ {org = "ballerina", name = "auth"}, {org = "ballerina", name = "cache"}, From 7a4db983b522ac907cf4508802e2e4d97a4fc4a4 Mon Sep 17 00:00:00 2001 From: dilanSachi Date: Fri, 19 Jan 2024 13:07:45 +0530 Subject: [PATCH 2/3] Release latch on failure --- .../stdlib/http/transport/contractimpl/sender/TargetHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/native/src/main/java/io/ballerina/stdlib/http/transport/contractimpl/sender/TargetHandler.java b/native/src/main/java/io/ballerina/stdlib/http/transport/contractimpl/sender/TargetHandler.java index a07bf957ba..505fb221a2 100644 --- a/native/src/main/java/io/ballerina/stdlib/http/transport/contractimpl/sender/TargetHandler.java +++ b/native/src/main/java/io/ballerina/stdlib/http/transport/contractimpl/sender/TargetHandler.java @@ -120,6 +120,7 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception { if (!idleTimeoutTriggered) { targetChannel.senderReqRespStateManager.handleAbruptChannelClosure(this, httpResponseFuture); } + releasePerRoutePoolLatchOnFailure(); connectionManager.invalidateTargetChannel(targetChannel); if (handlerExecutor != null) { From e17113a77d7298e9cc604015656ed2042652c533 Mon Sep 17 00:00:00 2001 From: dilanSachi Date: Fri, 19 Jan 2024 14:07:20 +0530 Subject: [PATCH 3/3] Update changelog.md --- changelog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/changelog.md b/changelog.md index 897f530327..424c1b7094 100644 --- a/changelog.md +++ b/changelog.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### Fixed - [Fix `IndexOutOfBoundsException` when decoding jwt header](https://github.com/ballerina-platform/ballerina-library/issues/5856) +- [Fix HTTP/2 upgrade client hanging when server closes the connection abruptly](https://github.com/ballerina-platform/ballerina-library/issues/5955) ## [2.10.4] - 2023-11-17