Skip to content

Commit

Permalink
Merge pull request #1842 from dilanSachi/fix-error-hang
Browse files Browse the repository at this point in the history
Release the `perRoutePoolLatch` when connection closes abruptly in H2 upgrade scenario
  • Loading branch information
dilanSachi authored Jan 19, 2024
2 parents b46ca97 + 42b91bb commit 746e9ce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ballerina/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion ballerina/CompilerPlugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion ballerina/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 746e9ce

Please sign in to comment.