[ https://issues.apache.org/jira/browse/HTTPCORE-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12571343#action_12571343 ]
Andrea Selva commented on HTTPCORE-92: -------------------------------------- Hi Oleg, i've given a see to the code of the ChunkEncoder.write(final ByteBuffer src). I supposed a simple solution, chunking the src buffer (via slice method) and write/flush cycles over the SessionOutputBuffer. The problem is that after the first flush over this buffer, the buffer itself could be never resetted and there isn't any method to call a reset or clear over this. How can i overcome thi poblem? Adding a method to reset the buffer in the SessionOutputBuffer interface or what else? I hope this explanation could be clear. Thanks Andrea Selva > NIO ChunkEncoder does not flush the session output buffer > --------------------------------------------------------- > > Key: HTTPCORE-92 > URL: https://issues.apache.org/jira/browse/HTTPCORE-92 > Project: HttpComponents HttpCore > Issue Type: Improvement > Components: HttpCore NIO > Reporter: Oleg Kalnichevski > Fix For: 4.0-beta2 > > > Present implementation of the NIO ChunkEncoder is over-simplistic. It always > expands the session output buffer to store more content instead of trying to > free up space by flushing the buffered content. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]