Skip to content

Commit

Permalink
fix #1695
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieuancelin committed Aug 30, 2023
1 parent b5e45d8 commit 82fc26e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion otoroshi/app/ssl/ssl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2311,12 +2311,16 @@ class CustomSSLEngine(delegate: SSLEngine, appProto: Option[String]) extends SSL
override def setHandshakeApplicationProtocolSelector(
selector: BiFunction[SSLEngine, util.List[String], String]
): Unit = {
delegate.setHandshakeApplicationProtocolSelector(selector)
if (!lock) {
delegate.setHandshakeApplicationProtocolSelector(selector)
}
}

override def getHandshakeApplicationProtocolSelector: BiFunction[SSLEngine, util.List[String], String] =
delegate.getHandshakeApplicationProtocolSelector

override def getHandshakeApplicationProtocol: String = delegate.getHandshakeApplicationProtocol

override def getApplicationProtocol: String = appProto match {
case None => delegate.getApplicationProtocol
case Some(protocol) => protocol
Expand Down
6 changes: 4 additions & 2 deletions otoroshi/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ lazy val bouncyCastleVersion = "1.70"
lazy val pulsarVersion = "2.8.1"
lazy val openTelemetryVersion = "1.28.0"
lazy val jacksonVersion = "2.13.4"
lazy val akkaHttpVersion = "10.2.15"
lazy val akkaHttp2Version = "10.2.10" // WHAT ???
lazy val akkaHttpVersion = "10.2.10"
lazy val akkaHttp2Version = "10.2.10"
lazy val reactorNettyVersion = "1.1.7"
lazy val nettyVersion = "4.1.93.Final"
lazy val excludesJackson = Seq(
Expand All @@ -78,6 +78,8 @@ lazy val excludeScalaJava8Compat = Seq(
ExclusionRule(organization = "org.scala-lang.modules")
)

// BEWARE: akka-stream is a patched version bundled from the lib directory because of . see https://github.com/MAIF/akka/tree/fix-tls-1-3-hanshake-session-update

libraryDependencies ++= Seq(
ws,
filters,
Expand Down
Binary file not shown.

0 comments on commit 82fc26e

Please sign in to comment.