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/04/03 10:04:41 UTC

[PR] Add configurable HTTP/2 connection window size [httpcomponents-core]

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

   This change adds a local HTTP/2 connection window size setting to H2Config.
   The new setting controls connection-level flow control only. It does not affect stream `INITIAL_WINDOW_SIZE` and preserves the current behavior by default.


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   > and yet we got OpenAI.
   
   @arturobernalg Which is bloody shame


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

Posted by "arturobernalg (via GitHub)" <gi...@apache.org>.
arturobernalg closed pull request #663: Add configurable HTTP/2 connection window size
URL: https://github.com/apache/httpcomponents-core/pull/663


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   @arturobernalg What is exactly the intent of this change-set? Why do you want this to be configurable? What is the exact use case for this?


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   > @arturobernalg What is exactly the intent of this change-set? Why do you want this to be configurable? What is the exact use case for this?
   
   @ok2c 
   The intent is to make the connection-level receive window configurable independently of the stream initial window.
   The use case is multiplexed H2 connections receiving large bodies, where per-stream windows alone do not bound total in-flight DATA for the connection. 


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   > @arturobernalg My daughter was _absolutely_ convinced she _really_ needed a pony when she was 7. 
   > 
   > 
   > 
   > Is there a single user for this parameter? Anyone asked for it? Do you need it for your personal project? For any more or less serious use case this single parameter would likely not be enough. We would likely need a proper strategy interface here if actually anyone _really_ asked for a feature like this. 
   
   For the record. No one asked for AI either, and yet we got OpenAI.


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   @arturobernalg And more importantly, why would anyone in their sane mind use any value other than MAX?


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   > @ok2c The point of the option is independent control of connection-level inbound flow. MAX remains a sensible throughput-oriented default. Smaller values are for applications that want stricter aggregate backpressure across all active streams on a multiplexed connection.
   > 
   > A concrete use case is an H2 client in a gateway, proxy, or sidecar multiplexing many large upstream responses over a single connection. Such clients may still want a reasonably large per-stream window, while limiting aggregate inbound data in flight at the connection level.
   
   
   
   To my mind, the main use case is a gateway, proxy, sidecar, API aggregator, or backend-to-backend H2 client multiplexing many concurrent large upstream responses over a single connection.
   Such clients may want to keep the per-stream window reasonably large, while limiting aggregate inbound data in flight at the connection level for tighter backpressure and more predictable resource usage.
   


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   @ok2c 
   The point of the option is independent control of connection-level inbound flow. MAX remains a sensible throughput-oriented default. Smaller values are for applications that want stricter aggregate backpressure across all active streams on a multiplexed connection.
   
   A concrete use case is an H2 client in a gateway, proxy, or sidecar multiplexing many large upstream responses over a single connection. Such clients may still want a reasonably large per-stream window, while limiting aggregate inbound data in flight at the connection level.
   


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   @arturobernalg Please provide an integration test or a demo app showing that tinkering with this parameter produces any tangible results.  


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   @arturobernalg My daughter was _absolutely_ convinced she _really_ needed a pony when she was 7. 
   
   Is there a single user for this parameter? Anyone asked for it? Do you need it for your personal project? For any more or less serious use case this single parameter would likely not be enough. We would likely need a proper strategy interface here if actually anyone _really_ asked for a feature like this. 


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   > @arturobernalg Please provide an integration test or a demo app showing that tinkering with this parameter produces any tangible results.
   
   @ok2c  Added a demo app that keeps the per-stream initial window fixed and varies only the connection-level receive window while transferring many large responses over a single H2 connection.


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   > > and yet we got OpenAI.
   > 
   > @arturobernalg Which is bloody shame
   
   
   
   > > and yet we got OpenAI.
   > 
   > @arturobernalg Which is bloody shame
   
   @ok2c  - Agree 100%


-- 
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 configurable HTTP/2 connection window size [httpcomponents-core]

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

   @arturobernalg what kind of improvement are you seeing?


-- 
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