You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "arturobernalg (via GitHub)" <gi...@apache.org> on 2026/01/25 18:38:51 UTC

[PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

arturobernalg opened a new pull request, #606:
URL: https://github.com/apache/httpcomponents-core/pull/606

   This introduces an HTTP/2 keep-alive PING policy for long-lived idle connections. When enabled, the client sends PING frames once the SETTINGS handshake is complete and no streams are active, and fails the session if the peer does not respond with PING[ACK] within the configured timeout. Integration tests validate that the connection remains usable past idle with keep-alive enabled and closes on inactivity when disabled.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3797233996

   @arturobernalg The change-set will likely need some work, but I am conceptually file with it. @rschmitt Would you have any conceptual objections to the idea?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "rschmitt (via GitHub)" <gi...@apache.org>.
rschmitt commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3826134485

   > Once available in client `H2PingPolicy` should go into `ConnectionConfig`
   
   I think we have too many config knobs already. I'd really prefer to expose this through `setValidateAfterInactivity`. Once we have support for HTTP/2 keep-alive PINGs that run asynchronously in the background, no one in their right mind will ever want to send a blocking PING in the request path to validate a connection. (I've spent this week dealing with a set of production issues that are directly related to this problem, and it has radicalized me re: how badly I want this keep-alive `PING` functionality.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2809557474


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########
@@ -519,6 +538,27 @@ public final void onOutput() throws HttpException, IOException {
         }
 
         if (connState.compareTo(ConnectionHandshake.ACTIVE) <= 0 && remoteSettingState == SettingsHandshake.ACKED) {
+            final long validateAfterInactivityMillis = validateAfterInactivity != null ? validateAfterInactivity.toMilliseconds() : 0;
+            final long effectiveValidateAfterInactivityMillis = validateAfterInactivityMillis > 0
+                    ? Math.max(validateAfterInactivityMillis, VALIDATE_AFTER_INACTIVITY_GRANULARITY_MILLIS)
+                    : 0;
+            final boolean hasBeenIdleTooLong = effectiveValidateAfterInactivityMillis > 0
+                    && System.currentTimeMillis() - lastActivityTime > effectiveValidateAfterInactivityMillis;
+
+            if (hasBeenIdleTooLong && ioSession.hasCommands() && pingHandlers.isEmpty()) {

Review Comment:
   @arturobernalg I think the above can be simplified as 
   
   ```
   final long t = TimeValue.isPositive(validateAfterInactivity) ?
           Math.max(validateAfterInactivity.toMilliseconds(), VALIDATE_AFTER_INACTIVITY_GRANULARITY_MILLIS) : 0;
   final boolean hasBeenIdleTooLong = t > 0 && System.currentTimeMillis() - lastActivityTime > t;
   ```
   
   Please squash the commits, tidy up javadocs, update the pull request title and merge.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3872285974

   > I like the fact that API changes are small, but I find the implementation too complex and overwrought:
   > 
   > The process should be quite simple:
   > 
   >     * on timeout shut down immediately if the connection has not been fully initialized, SETTINGS handshake has not completed or the keep-alive has not been turned on
   > 
   >     * otherwise set timeout to something like 1 second and send ping
   > 
   >     * if ping comes back restore the original timeout
   > 
   >     * if a timeout event fires again, shut down the connection and go home
   
   @ok2c I reworked the keep-alive handling to follow the exact 4-step process you outlined


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2787950725


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @arturobernalg It has to be massively simpler 
   
   In `AbstractH2StreamMultiplexer` at the line 522 do the following
   
   ```
   if (hasBeenIdleTooLong && ioSession.hasCommands() && pingHandlers.isEmpty()) {
   
       ioSession.setSocketTimeout(Timeout.ofSeconds(5));
       executePing(new PingCommand(new BasicPingHandler(new Callback<Boolean>() {
   
           @Override
           public void execute(final Boolean result) {
               // restore timeout
               ioSession.setSocketTimeout(...);
               if (result) {
                   // proceed with command execution
                   requestSessionOutput();
               } else {
                   ioSession.enqueue(new ShutdownCommand(CloseMode.GRACEFUL), Command.Priority.NORMAL);
               }
           }
   
       })));
       return;
   }
   ```
   
   Add idle time tracking, and that _should_ be all it takes.
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807692639


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @ok2c 
   
   No, there isn’t reason to be more complex.  I just remove the method



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] HTTP/2: throttle validateAfterInactivity pre-flight PING checks [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg merged PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807692639


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @ok2c 
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2809555623


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########
@@ -519,6 +538,27 @@ public final void onOutput() throws HttpException, IOException {
         }
 
         if (connState.compareTo(ConnectionHandshake.ACTIVE) <= 0 && remoteSettingState == SettingsHandshake.ACKED) {
+            final long validateAfterInactivityMillis = validateAfterInactivity != null ? validateAfterInactivity.toMilliseconds() : 0;

Review Comment:
   @arturobernalg I think 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3855317865

   > keep-alive is now driven via setValidateAfterInactivity (no new H2Config knob), so it fits the existing connection validation API. Also switched to the existing ping command path (keep-alive uses the same sendPing flow), per your suggestion.
   
    @ok2c should i do another change here?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3830759567

    keep-alive is now driven via setValidateAfterInactivity (no new H2Config knob), so it fits the existing connection validation API.
   Also switched to the existing ping command path (keep-alive uses the same sendPing flow), per your suggestion.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807858310


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########
@@ -148,6 +149,9 @@ enum SettingsHandshake { READY, TRANSMITTED, ACKED }
     private static final long STREAM_TIMEOUT_GRANULARITY_MILLIS = 1000;
     private long lastStreamTimeoutCheckMillis;
 
+    private final Timeout validateAfterInactivity;
+    private long lastActivityTime;

Review Comment:
   @arturobernalg Why do you need two variables that track last activity here? Are you sure this makes sense?
   
   ```
   
       private long lastActivityTime;
       private volatile long lastActivityMillis;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3904220922

   @arturobernalg Very good. Almost there. One last thing we should do is to make sure does not fire more frequently than 1 or 3 seconds even if one sets `validateAfterInactivity` to 1 ms or something equally crazy.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "rschmitt (via GitHub)" <gi...@apache.org>.
rschmitt commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3819226909

   > When enabled, the client sends PING frames once the SETTINGS handshake is complete and no streams are active, and fails the session if the peer does not respond with PING[ACK] within the configured timeout.
   
   This sounds way better than the current HTTP/2 implementation of `setValidateAfterInactivity`, which adds an entire round trip's worth of latency to the request path. Would it be outrageous if exposed this through `setValidateAfterInactivity` instead of adding something like a new `H2Config` option?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3820033580

   @arturobernalg 
   1. I also think `H2Config` is not the right place. Keep it as a separate constructor parameter. Once available in client `H2PingPolicy` should go into `ConnectionConfig`
   2. Any chance you could use the existing ping command here?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807692639


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @ok2c 
   
   No, there isn’t reason to be more complex. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807858310


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########
@@ -148,6 +149,9 @@ enum SettingsHandshake { READY, TRANSMITTED, ACKED }
     private static final long STREAM_TIMEOUT_GRANULARITY_MILLIS = 1000;
     private long lastStreamTimeoutCheckMillis;
 
+    private final Timeout validateAfterInactivity;
+    private long lastActivityTime;

Review Comment:
   @arturobernalg Why do you need two variables that here? Are you sure this makes sense?
   
   ```
   
       private long lastActivityTime;
       private volatile long lastActivityMillis;
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807323226


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @arturobernalg I will test this new feature some more using the example you have provided, but overall this looks good to me, as far as I am concerned. 
   
   Is there a reason it needs to be more complex? 
   
   One minor nitpick. There is a new method `#hasBeenIdleTooLong` that does not appear to be used. Either use it or remove it.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2807323226


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @arturobernalg I will test this new feature some more using the example you have provided, but overall this looks good to me, as far as I am concerned. 
   
   Is there a reason it needs to be more complex? 
   
   My minor nitpick. There is a new method `#hasBeenIdleTooLong` that does not appear to be used. Either use it or remove it.
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "ok2c (via GitHub)" <gi...@apache.org>.
ok2c commented on PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#issuecomment-3871092692

   @arturobernalg I like the fact that API changes are small, but I find the implementation too complex and overwrought:
   
   The process should be quite simple:
   
   * on timeout shut down immediately if the connection has not been fully initialized, SETTINGS handshake has not completed or the keep-alive has not been turned on
   * otherwise set timeout to something like 1 second and send ping
   * if ping comes back restore the original timeout
   * if a timeout event fires again, shut down the connection and go home


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: [PR] Add HTTP/2 keep-alive PING policy. [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg commented on code in PR #606:
URL: https://github.com/apache/httpcomponents-core/pull/606#discussion_r2789759820


##########
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java:
##########


Review Comment:
   @ok2c 
   I reworked it to the massively simpler pre-flight PING: only when idle > validateAfterInactivity and commands are pending, with a short ACK timeout and restoring the previous socket timeout.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org