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

   **[Andriy 
Redko](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=reta)** 
opened 
**[HTTPCORE-775](https://issues.apache.org/jira/browse/HTTPCORE-775?redirect=false)**
 and commented
   
   In Apache CXF, we have received an issue from the user 
(https://issues.apache.org/jira/browse/CXF-9093) that HTTP client (backed by 
Apache HttpClient 5.4.1 / Apache HttpCore 5.3.1) basically hangs with payloads 
> 2.5kb and TLSv1.3.
   
   It turned out that the problem is SSLIOSession::write method (more 
specifically, 
https://github.com/apache/httpcomponents-core/blob/master/httpcore5/src/main/java/org/apache/hc/core5/reactor/ssl/SSLIOSession.java#L672)
 that does not handle SSLEngineResult#BUFFER_OVERFLOW, causing the processing 
loop to stuck. In this case, the buffer is limited by getPacketSize() (~16Kb). 
There is a mitigation (pass -Djsse.SSLEngine.acceptLargeFragments=true) but it 
is also limited to a bit larger requests.
   
   We have crafted a CXF specific test cases which reproduce the issue very 
reliably (https://github.com/apache/cxf/pull/2214). I am happy to work on the 
fix (if the issue makes sense) or provide minimal reproducer (if the team is 
interested to pick it up).
   
   
   ---
   
   **Affects:** 5.3.1
   
   **Issue Links:**
   - [CXF-9093](https://issues.apache.org/jira/browse/CXF-9093) Client does not 
send entire payload (if size ~> 2500 bytes) when hc5, TLS1.3 are used
    (_**"blocks"**_)
   - [CXF-9098](https://issues.apache.org/jira/browse/CXF-9098) HttpClient5 
throws InterruptedIOException: Output operation aborted when sending large 
payload (36kB+)
    (_**"blocks"**_)
   
   **Backported to:** 
[5.3.3](https://github.com/apache/httpcomponents-core/milestone/98?closed=1)
   
   0 votes, 5 watchers
   


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