You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2023/11/22 16:15:47 UTC

(httpcomponents-core) branch master updated (a70867348 -> faaa82fb7)

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

olegk pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git


    omit a70867348 HTTPCORE-761: support ExtendedSocketOption in socket (#442)
     new faaa82fb7 HTTPCORE-762: H2 protocol handler incorrectly determines the maximum frame size for outgoing frames in case the remote endpoint negotiated a max frame size larger than the protocol default

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (a70867348)
            \
             N -- N -- N   refs/heads/master (faaa82fb7)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../impl/nio/AbstractH2StreamMultiplexer.java      |  2 +-
 .../apache/hc/core5/reactor/IOReactorConfig.java   | 77 ----------------------
 .../hc/core5/reactor/SingleCoreIOReactor.java      | 38 ++---------
 .../org/apache/hc/core5/util/ReflectionUtils.java  | 14 ----
 .../hc/core5/reactor/IOReactorConfigTest.java      |  6 --
 .../hc/core5/reactor/TestSingleCoreIOReactor.java  | 66 -------------------
 .../apache/hc/core5/util/TestReflectionUtils.java  | 57 ----------------
 7 files changed, 5 insertions(+), 255 deletions(-)
 delete mode 100644 httpcore5/src/test/java/org/apache/hc/core5/reactor/TestSingleCoreIOReactor.java
 delete mode 100644 httpcore5/src/test/java/org/apache/hc/core5/util/TestReflectionUtils.java


(httpcomponents-core) 01/01: HTTPCORE-762: H2 protocol handler incorrectly determines the maximum frame size for outgoing frames in case the remote endpoint negotiated a max frame size larger than the protocol default

Posted by ol...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

olegk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-core.git

commit faaa82fb76574c07fb31a916f64adcb52f56148e
Author: Oleg Kalnichevski <ol...@apache.org>
AuthorDate: Wed Nov 22 16:29:54 2023 +0100

    HTTPCORE-762: H2 protocol handler incorrectly determines the maximum frame size for outgoing frames in case the remote endpoint negotiated a max frame size larger than the protocol default
---
 .../org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
index 6431c43de..03ac7302e 100644
--- a/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
+++ b/httpcore5-h2/src/main/java/org/apache/hc/core5/http2/impl/nio/AbstractH2StreamMultiplexer.java
@@ -351,7 +351,7 @@ abstract class AbstractH2StreamMultiplexer implements Identifiable, HttpConnecti
             if (capacity <= 0) {
                 return 0;
             }
-            final int maxPayloadSize = Math.min(capacity, remoteConfig.getMaxFrameSize());
+            final int maxPayloadSize = Math.min(capacity, outputBuffer.getMaxFramePayloadSize());
             final int chunk;
             if (payload.remaining() <= maxPayloadSize) {
                 chunk = payload.remaining();