jira-importer opened a new issue, #1227:
URL: https://github.com/apache/httpcomponents-core/issues/1227

   **[Lubos 
Husivarga](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER282837)**
 opened 
**[HTTPCORE-707](https://issues.apache.org/jira/browse/HTTPCORE-707?redirect=false)**
 and commented
   
   AbstractH2StreamMultiplexer initializes outputBuffer with frame size from 
local config:
   
   _this.outputBuffer = new FrameOutputBuffer(this.outputMetrics, 
this.{*}localConfig{*}.getMaxFrameSize());_
   
    
   
   Data are streamed using streamData(...) method which checks maxPayloadSize 
against remote config:
   
   _final int maxPayloadSize = Math.min(capacity, 
{*}remoteConfig{*}.getMaxFrameSize());_
   
    
   
   Issue: When remote config has greater max frame size than local config and 
the payload is also greater than local max frame size, the FrameOutputBuffer 
throws "Frame size exceeds maximum" error, since it compares the payload size 
against local frame size as it was initialized with it, not remote frame size.
   
    
   
   My suggestion: AbstractH2StreamMultiplexer.{**}applyRemoteSettings{**}(...) 
should update the outputBuffer's max frame size based on remote config.
   
    
   
   I will appreciate your help, as it is really annoying issue depending on 
remote site config and payload size, so it may be spotted randomly.
   
   
   ---
   
   **Affects:** 5.2-alpha1
   
   **Attachments:**
   - 
[context_wire_log.txt](https://issues.apache.org/jira/secure/attachment/13038073/context_wire_log.txt)
 (_1.21 MB_)
   - 
[http2_flow_frame.txt](https://issues.apache.org/jira/secure/attachment/13038101/http2_flow_frame.txt)
 (_17.28 kB_)
   
   **Backported to:** 
[5.1.4](https://github.com/apache/httpcomponents-core/milestone/76?closed=1)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to