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

   **[Carter 
Kozak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ckozak)** 
opened 
**[HTTPCORE-639](https://issues.apache.org/jira/browse/HTTPCORE-639?redirect=false)**
 and commented
   
   In a known environment where the server fully reads full request bodies 
before sending a response, I would like to disable the expensive 
checkForEarlyResponse checks implemented by 
DefaultBHttpClientConnection.sendRequestEntity.
   
   Using TLS the check blocks for 1ms every 8kb, which limits the upload rate 
to at most eight megabytes per second, relatively low in a data-center 
environment.
   
   Proposed interface:
   
   ```java
   public interface ResponseOutOfOrderStrategy {
   
       /**
        * Returns the interval in bytes describing how often the socket is 
checked for an out-of-order response.
        * The default implementation uses 8kb. A value of zero results in 
checks being disabled, this may result
        * in requests blocking until the socket timeout is reached while a 
server sends an out-of-order response.
        */
       int determineResponseCheckIntervalBytes(ClassicHttpRequest request, 
Socket socket);
   }
   ```
   
   I'd be happy to implement and contribute such a feature if you agree that 
it's reasonable.
   
   I appreciate any input and feedback you can provide!
   
   
   ---
   No further details from 
[HTTPCORE-639](https://issues.apache.org/jira/browse/HTTPCORE-639?redirect=false)


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