jira-importer opened a new issue, #1503: URL: https://github.com/apache/httpcomponents-core/issues/1503
**[James Leigh](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jamesrdf)** opened **[HTTPCORE-351](https://issues.apache.org/jira/browse/HTTPCORE-351?redirect=false)** and commented HttpAsyncService.State.reset() should not call clear(), but instead initialize a new (empty) context object for use with sequent requests. Since HttpCore-nio is expected to be used in a multi-threaded environment, there is not guarantee that when exchange is over, the request/response is not still being processed (in another thread). Consider the situation when the client closes the TCP connection before the response is complete or when the response headers are ready, but the response entity is still being produced. In these situations clearing the HttpContext may have adverse effects in other threads that are still processing the request/response. --- **Affects:** 4.2.5, 4.3 **Attachments:** - [HTTPCORE-351.patch](https://issues.apache.org/jira/secure/attachment/12605028/HTTPCORE-351.patch) (_1.26 kB_) -- 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]
