This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-grpc.git
The following commit(s) were added to refs/heads/main by this push:
new e675f337 use `pekko.http.server.enable-http2` (#601)
e675f337 is described below
commit e675f337f28c49baac19b63fa641f3d223e70cf2
Author: PJ Fanning <[email protected]>
AuthorDate: Thu Jan 22 14:42:33 2026 +0100
use `pekko.http.server.enable-http2` (#601)
---
.../main/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorker.java | 2 +-
.../src/main/java/org/apache/pekko/grpc/benchmarks/qps/AsyncServer.java | 2 +-
.../java/org/apache/pekko/grpc/benchmarks/driver/LoadWorkerTest.java | 2 +-
docs/src/main/paradox/server/walkthrough.md | 2 +-
docs/src/main/paradox/troubleshooting.md | 2 +-
.../main/java/org/apache/pekko/grpc/interop/PekkoGrpcServerJava.java | 2 +-
plugin-tester-java/src/main/java/example/myapp/CombinedServer.java | 2 +-
.../main/java/example/myapp/helloworld/AuthenticatedGreeterServer.java | 2 +-
.../src/main/java/example/myapp/helloworld/GreeterServer.java | 2 +-
.../example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java | 2 +-
.../src/main/java/example/myapp/helloworld/PowerGreeterServer.java | 2 +-
.../src/test/scala/example/myapp/helloworld/JGreeterServiceSpec.scala | 2 +-
plugin-tester-scala/src/main/scala/example/myapp/CombinedServer.scala | 2 +-
.../scala/example/myapp/helloworld/AuthenticatedGreeterServer.scala | 2 +-
.../src/main/scala/example/myapp/helloworld/GreeterServer.scala | 2 +-
.../example/myapp/helloworld/LoggingErrorHandlingGreeterServer.scala | 2 +-
.../src/test/scala/example/myapp/helloworld/GreeterServiceSpec.scala | 2 +-
.../src/main/java/example/myapp/helloworld/Main.java | 2 +-
.../gen-scala-server/00-interop/src/main/resources/application.conf | 2 +-
.../src/main/scala/example/myapp/helloworld/Main.scala | 2 +-
.../scala3/01-basic-client-server/src/main/resources/application.conf | 2 +-
21 files changed, 21 insertions(+), 21 deletions(-)
diff --git
a/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorker.java
b/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorker.java
index 37145946..7e5fb639 100644
---
a/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorker.java
+++
b/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorker.java
@@ -128,7 +128,7 @@ public class LoadWorker {
// important to enable HTTP/2 in ActorSystem's config
- Config conf =
ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on")
+ Config conf = ConfigFactory.parseString("pekko.http.server.enable-http2 =
on")
.withFallback(ConfigFactory.defaultApplication());
ActorSystem system = ActorSystem.create("LoadWorker", conf);
new LoadWorker(system, driverPort, serverPort).start();
diff --git
a/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/qps/AsyncServer.java
b/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/qps/AsyncServer.java
index b35d18dd..63fabd3a 100644
---
a/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/qps/AsyncServer.java
+++
b/benchmark-java/src/main/java/org/apache/pekko/grpc/benchmarks/qps/AsyncServer.java
@@ -67,7 +67,7 @@ public class AsyncServer {
public void run(InetSocketAddress address, boolean useTls) throws Exception {
// important to enable HTTP/2 in ActorSystem's config
- Config conf =
ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on")
+ Config conf = ConfigFactory.parseString("pekko.http.server.enable-http2 =
on")
.withFallback(ConfigFactory.defaultApplication());
system = ActorSystem.create("AsyncServer", conf);
diff --git
a/benchmark-java/src/test/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorkerTest.java
b/benchmark-java/src/test/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorkerTest.java
index f13915c6..c1593ce0 100644
---
a/benchmark-java/src/test/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorkerTest.java
+++
b/benchmark-java/src/test/java/org/apache/pekko/grpc/benchmarks/driver/LoadWorkerTest.java
@@ -69,7 +69,7 @@ public class LoadWorkerTest extends JUnitSuite {
@Before
public void setup() throws Exception {
// important to enable HTTP/2 in ActorSystem's config
- Config conf =
ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on")
+ Config conf = ConfigFactory.parseString("pekko.http.server.enable-http2 =
on")
.withFallback(ConfigFactory.defaultApplication());
system = ActorSystem.create("LoadWorkerTest", conf);
mat = SystemMaterializer.get(system).materializer();
diff --git a/docs/src/main/paradox/server/walkthrough.md
b/docs/src/main/paradox/server/walkthrough.md
index 58906abb..59b9366e 100644
--- a/docs/src/main/paradox/server/walkthrough.md
+++ b/docs/src/main/paradox/server/walkthrough.md
@@ -196,7 +196,7 @@ Java
It's important to enable HTTP/2 in Pekko HTTP in the configuration of the
`ActorSystem` by setting
```
-pekko.http.server.preview.enable-http2 = on
+pekko.http.server.enable-http2 = on
```
In the example this was done from the `main` method, but you could also do
this from within your `application.conf`.
diff --git a/docs/src/main/paradox/troubleshooting.md
b/docs/src/main/paradox/troubleshooting.md
index 9504c3e4..ac058479 100644
--- a/docs/src/main/paradox/troubleshooting.md
+++ b/docs/src/main/paradox/troubleshooting.md
@@ -15,5 +15,5 @@ gRPC server with a client that is configured with TLS enabled.
java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException:
UNAVAILABLE: Failed ALPN negotiation: Unable to find compatible protocol
```
-This may happen when `pekko.http.server.preview.enable-http2` is not enabled in
+This may happen when `pekko.http.server.enable-http2` is not enabled in
the configuration.
diff --git
a/interop-tests/src/main/java/org/apache/pekko/grpc/interop/PekkoGrpcServerJava.java
b/interop-tests/src/main/java/org/apache/pekko/grpc/interop/PekkoGrpcServerJava.java
index 9db117cd..dcdad5c6 100644
---
a/interop-tests/src/main/java/org/apache/pekko/grpc/interop/PekkoGrpcServerJava.java
+++
b/interop-tests/src/main/java/org/apache/pekko/grpc/interop/PekkoGrpcServerJava.java
@@ -64,7 +64,7 @@ public class PekkoGrpcServerJava extends
GrpcServer<Tuple2<ActorSystem, ServerBi
ActorSystem sys =
ActorSystem.create(
"pekko-grpc-server-java",
- ConfigFactory.parseString("pekko.http.server.preview.enable-http2
= on"));
+ ConfigFactory.parseString("pekko.http.server.enable-http2 = on"));
Materializer mat = SystemMaterializer.get(sys).materializer();
Function<HttpRequest, CompletionStage<HttpResponse>> testService =
diff --git a/plugin-tester-java/src/main/java/example/myapp/CombinedServer.java
b/plugin-tester-java/src/main/java/example/myapp/CombinedServer.java
index 96d03d81..c592ae9f 100644
--- a/plugin-tester-java/src/main/java/example/myapp/CombinedServer.java
+++ b/plugin-tester-java/src/main/java/example/myapp/CombinedServer.java
@@ -44,7 +44,7 @@ import example.myapp.echo.grpc.*;
class CombinedServer {
public static void main(String[] args) {
// important to enable HTTP/2 in ActorSystem's config
- Config conf =
ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on")
+ Config conf = ConfigFactory.parseString("pekko.http.server.enable-http2
= on")
.withFallback(ConfigFactory.defaultApplication());
ActorSystem sys = ActorSystem.create("HelloWorld", conf);
Materializer mat = SystemMaterializer.get(sys).materializer();
diff --git
a/plugin-tester-java/src/main/java/example/myapp/helloworld/AuthenticatedGreeterServer.java
b/plugin-tester-java/src/main/java/example/myapp/helloworld/AuthenticatedGreeterServer.java
index 352fea85..b9ed1f73 100644
---
a/plugin-tester-java/src/main/java/example/myapp/helloworld/AuthenticatedGreeterServer.java
+++
b/plugin-tester-java/src/main/java/example/myapp/helloworld/AuthenticatedGreeterServer.java
@@ -35,7 +35,7 @@ class AuthenticatedGreeterServer {
public static void main(String[] args) throws Exception {
// important to enable HTTP/2 in ActorSystem's config
Config conf =
- ConfigFactory.parseString("pekko.http.server.preview.enable-http2 =
on")
+ ConfigFactory.parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication());
// ActorSystem Boot
diff --git
a/plugin-tester-java/src/main/java/example/myapp/helloworld/GreeterServer.java
b/plugin-tester-java/src/main/java/example/myapp/helloworld/GreeterServer.java
index 9542b3e7..73763e04 100644
---
a/plugin-tester-java/src/main/java/example/myapp/helloworld/GreeterServer.java
+++
b/plugin-tester-java/src/main/java/example/myapp/helloworld/GreeterServer.java
@@ -29,7 +29,7 @@ class GreeterServer {
public static void main(String[] args) throws Exception {
// important to enable HTTP/2 in ActorSystem's config
Config conf =
- ConfigFactory.parseString("pekko.http.server.preview.enable-http2 =
on")
+ ConfigFactory.parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication());
// ActorSystem Boot
diff --git
a/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
b/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
index 2457d9a2..49dff12a 100644
---
a/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
+++
b/plugin-tester-java/src/main/java/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.java
@@ -42,7 +42,7 @@ public class LoggingErrorHandlingGreeterServer {
public static void main(String[] args) throws Exception {
// important to enable HTTP/2 in ActorSystem's config
Config conf =
- ConfigFactory.parseString("pekko.http.server.preview.enable-http2 =
on")
+ ConfigFactory.parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication());
// ActorSystem Boot
diff --git
a/plugin-tester-java/src/main/java/example/myapp/helloworld/PowerGreeterServer.java
b/plugin-tester-java/src/main/java/example/myapp/helloworld/PowerGreeterServer.java
index 6570bec0..fd98513b 100644
---
a/plugin-tester-java/src/main/java/example/myapp/helloworld/PowerGreeterServer.java
+++
b/plugin-tester-java/src/main/java/example/myapp/helloworld/PowerGreeterServer.java
@@ -29,7 +29,7 @@ class PowerGreeterServer {
public static void main(String[] args) throws Exception {
// important to enable HTTP/2 in ActorSystem's config
Config conf =
- ConfigFactory.parseString("pekko.http.server.preview.enable-http2 =
on")
+ ConfigFactory.parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication());
// ActorSystem Boot
diff --git
a/plugin-tester-java/src/test/scala/example/myapp/helloworld/JGreeterServiceSpec.scala
b/plugin-tester-java/src/test/scala/example/myapp/helloworld/JGreeterServiceSpec.scala
index 087fc789..4dd971da 100644
---
a/plugin-tester-java/src/test/scala/example/myapp/helloworld/JGreeterServiceSpec.scala
+++
b/plugin-tester-java/src/test/scala/example/myapp/helloworld/JGreeterServiceSpec.scala
@@ -38,7 +38,7 @@ class JGreeterServiceSpec extends Matchers with
AnyWordSpecLike with BeforeAndAf
implicit val serverSystem: ActorSystem = {
// important to enable HTTP/2 in server ActorSystem's config
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
val sys = ActorSystem("GreeterServer", conf)
// make sure servers are bound before using client
diff --git
a/plugin-tester-scala/src/main/scala/example/myapp/CombinedServer.scala
b/plugin-tester-scala/src/main/scala/example/myapp/CombinedServer.scala
index e17d02f0..d0af502e 100644
--- a/plugin-tester-scala/src/main/scala/example/myapp/CombinedServer.scala
+++ b/plugin-tester-scala/src/main/scala/example/myapp/CombinedServer.scala
@@ -41,7 +41,7 @@ object CombinedServer {
def main(args: Array[String]): Unit = {
// important to enable HTTP/2 in ActorSystem's config
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
implicit val sys: ActorSystem = ActorSystem("HelloWorld", conf)
implicit val ec: ExecutionContext = sys.dispatcher
diff --git
a/plugin-tester-scala/src/main/scala/example/myapp/helloworld/AuthenticatedGreeterServer.scala
b/plugin-tester-scala/src/main/scala/example/myapp/helloworld/AuthenticatedGreeterServer.scala
index 4d022d90..d6bfa7ce 100644
---
a/plugin-tester-scala/src/main/scala/example/myapp/helloworld/AuthenticatedGreeterServer.scala
+++
b/plugin-tester-scala/src/main/scala/example/myapp/helloworld/AuthenticatedGreeterServer.scala
@@ -29,7 +29,7 @@ object AuthenticatedGreeterServer {
// Important: enable HTTP/2 in ActorSystem's config
// We do it here programmatically, but you can also set it in the
application.conf
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
val system = ActorSystem("HelloWorld", conf)
new AuthenticatedGreeterServer(system).run()
diff --git
a/plugin-tester-scala/src/main/scala/example/myapp/helloworld/GreeterServer.scala
b/plugin-tester-scala/src/main/scala/example/myapp/helloworld/GreeterServer.scala
index ebf27298..8d55b716 100644
---
a/plugin-tester-scala/src/main/scala/example/myapp/helloworld/GreeterServer.scala
+++
b/plugin-tester-scala/src/main/scala/example/myapp/helloworld/GreeterServer.scala
@@ -28,7 +28,7 @@ object GreeterServer {
// Important: enable HTTP/2 in ActorSystem's config
// We do it here programmatically, but you can also set it in the
application.conf
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
val system = ActorSystem("HelloWorld", conf)
new GreeterServer(system).run()
diff --git
a/plugin-tester-scala/src/main/scala/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.scala
b/plugin-tester-scala/src/main/scala/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.scala
index d99a7fc2..bc89c8e1 100644
---
a/plugin-tester-scala/src/main/scala/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.scala
+++
b/plugin-tester-scala/src/main/scala/example/myapp/helloworld/LoggingErrorHandlingGreeterServer.scala
@@ -34,7 +34,7 @@ import scala.util.control.NonFatal
object LoggingErrorHandlingGreeterServer {
def main(args: Array[String]): Unit = {
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
val system = ActorSystem("Server", conf)
new LoggingErrorHandlingGreeterServer(system).run()
diff --git
a/plugin-tester-scala/src/test/scala/example/myapp/helloworld/GreeterServiceSpec.scala
b/plugin-tester-scala/src/test/scala/example/myapp/helloworld/GreeterServiceSpec.scala
index 0f9f1933..676bdbc6 100644
---
a/plugin-tester-scala/src/test/scala/example/myapp/helloworld/GreeterServiceSpec.scala
+++
b/plugin-tester-scala/src/test/scala/example/myapp/helloworld/GreeterServiceSpec.scala
@@ -38,7 +38,7 @@ class GreeterServiceSpec extends Matchers with
AnyWordSpecLike with BeforeAndAft
implicit val serverSystem: ActorSystem = {
// important to enable HTTP/2 in server ActorSystem's config
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
val sys = ActorSystem("GreeterServer", conf)
// make sure servers are bound before using client
diff --git
a/sbt-plugin/src/sbt-test/gen-java/02-server-reflection/src/main/java/example/myapp/helloworld/Main.java
b/sbt-plugin/src/sbt-test/gen-java/02-server-reflection/src/main/java/example/myapp/helloworld/Main.java
index 6f1770c6..85269fa6 100644
---
a/sbt-plugin/src/sbt-test/gen-java/02-server-reflection/src/main/java/example/myapp/helloworld/Main.java
+++
b/sbt-plugin/src/sbt-test/gen-java/02-server-reflection/src/main/java/example/myapp/helloworld/Main.java
@@ -34,7 +34,7 @@ import example.myapp.helloworld.grpc.*;
public class Main {
public static void main(String[] args) throws Exception {
// important to enable HTTP/2 in ActorSystem's config
- Config conf =
ConfigFactory.parseString("pekko.http.server.preview.enable-http2 = on")
+ Config conf =
ConfigFactory.parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication());
// ActorSystem Boot
ActorSystem sys = ActorSystem.create("HelloWorld", conf);
diff --git
a/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/src/main/resources/application.conf
b/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/src/main/resources/application.conf
index 9775f4fb..83491a07 100644
---
a/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/src/main/resources/application.conf
+++
b/sbt-plugin/src/sbt-test/gen-scala-server/00-interop/src/main/resources/application.conf
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
-pekko.http.server.preview.enable-http2 = on
+pekko.http.server.enable-http2 = on
diff --git
a/sbt-plugin/src/sbt-test/gen-scala-server/04-server-reflection/src/main/scala/example/myapp/helloworld/Main.scala
b/sbt-plugin/src/sbt-test/gen-scala-server/04-server-reflection/src/main/scala/example/myapp/helloworld/Main.scala
index c814e848..431445df 100644
---
a/sbt-plugin/src/sbt-test/gen-scala-server/04-server-reflection/src/main/scala/example/myapp/helloworld/Main.scala
+++
b/sbt-plugin/src/sbt-test/gen-scala-server/04-server-reflection/src/main/scala/example/myapp/helloworld/Main.scala
@@ -31,7 +31,7 @@ import example.myapp.helloworld.grpc._
object Main extends App {
val conf = ConfigFactory
- .parseString("pekko.http.server.preview.enable-http2 = on")
+ .parseString("pekko.http.server.enable-http2 = on")
.withFallback(ConfigFactory.defaultApplication())
implicit val sys: ActorSystem = ActorSystem("HelloWorld", conf)
diff --git
a/sbt-plugin/src/sbt-test/scala3/01-basic-client-server/src/main/resources/application.conf
b/sbt-plugin/src/sbt-test/scala3/01-basic-client-server/src/main/resources/application.conf
index eae10f7a..1608dd09 100644
---
a/sbt-plugin/src/sbt-test/scala3/01-basic-client-server/src/main/resources/application.conf
+++
b/sbt-plugin/src/sbt-test/scala3/01-basic-client-server/src/main/resources/application.conf
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: Apache-2.0
-pekko.http.server.preview.enable-http2 = on
+pekko.http.server.enable-http2 = on
pekko.grpc.client."*" {
backend = "pekko-http"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]