This is an automated email from the ASF dual-hosted git repository.

liubao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-java-chassis.git


The following commit(s) were added to refs/heads/master by this push:
     new fd7e5cb23 [SCB-2791]Http2 client keepAliveTimeout is not properly set 
(#3772)
fd7e5cb23 is described below

commit fd7e5cb236222f3f7b1b96198ee6a076bb7dd4d3
Author: liubao68 <[email protected]>
AuthorDate: Sat May 6 17:12:42 2023 +0800

    [SCB-2791]Http2 client keepAliveTimeout is not properly set (#3772)
---
 .../servicecomb/foundation/vertx/client/http/HttpClientOptionsSPI.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/http/HttpClientOptionsSPI.java
 
b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/http/HttpClientOptionsSPI.java
index 164e4f4dc..86aaa5564 100644
--- 
a/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/http/HttpClientOptionsSPI.java
+++ 
b/foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/client/http/HttpClientOptionsSPI.java
@@ -123,10 +123,11 @@ public interface HttpClientOptionsSPI {
     }
 
     if (spi.getHttpVersion() == HttpVersion.HTTP_2) {
-      httpClientOptions.setHttp2ClearTextUpgrade(false);
       httpClientOptions.setUseAlpn(spi.isUseAlpn());
+      httpClientOptions.setHttp2ClearTextUpgrade(false);
       
httpClientOptions.setHttp2MultiplexingLimit(spi.getHttp2MultiplexingLimit());
       httpClientOptions.setHttp2MaxPoolSize(spi.getHttp2MaxPoolSize());
+      httpClientOptions.setHttp2KeepAliveTimeout(spi.getKeepAliveTimeout());
     }
 
     if (spi.isSsl()) {

Reply via email to