jira-importer opened a new issue, #1159: URL: https://github.com/apache/httpcomponents-core/issues/1159
**[Pedro Lamarão](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pedro.lamarao)** opened **[HTTPCORE-635](https://issues.apache.org/jira/browse/HTTPCORE-635?redirect=false)** and commented We extend AbstractBinAsyncEntityProducer to stream from an InputStream. While investigating a conceptually higher-level problem, we have hit the following situation. In the attached code file, our program raises the assertion at line 66. The documentation for produceData asserts "the ability of the underlying byte channel to accept more data" and the documentation for endStream asserts "terminates the underlying data stream". Though not explicitly stated, it seems obvious that, after endStream, the underlying stream cannot accept more data. Our original problem is a test case where the server program apparently does not actually send the response entity to the client program. Client logs indicate there is no response body, and debugging revealed that produce eventually calls endStream twice in a row. --- **Affects:** 5.0.1 **Attachments:** - [InputStreamServerHandler.java](https://issues.apache.org/jira/secure/attachment/13006680/InputStreamServerHandler.java) (_3.16 kB_) - [integrationTest.log](https://issues.apache.org/jira/secure/attachment/13006688/integrationTest.log) (_54.87 kB_) - [stack-01.txt](https://issues.apache.org/jira/secure/attachment/13006685/stack-01.txt) (_2.68 kB_) - [stack-02.txt](https://issues.apache.org/jira/secure/attachment/13006686/stack-02.txt) (_1.33 kB_) - [stack-03.txt](https://issues.apache.org/jira/secure/attachment/13006687/stack-03.txt) (_2.68 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]
