wy96f commented on issue #2843: ARTEMIS-2496 Revert catch up with zero-copy, as 
it's causing issues i…
URL: https://github.com/apache/activemq-artemis/pull/2843#issuecomment-533388136
 
 
   > @wy96f I've just run a naive test replacing FileRegion with ChunkedNioFile 
and it should work OOTB...but seems that netty is not reading data from it...I 
need to dig better into it
   
   @franz1981
   I just notice `ChunkedWriteHandler` needs to be added in pipeline by using 
`ChunkedFile`, 
https://github.com/netty/netty/blob/ff7a9fa091a8bf2e10020f83fc4df1c44098bbbb/example/src/main/java/io/netty/example/file/FileServer.java#L77
   It was my bad i missed this before revert. When using `ChunkedFile`(in the 
ssl case), exception would be thrown, 
https://github.com/netty/netty/blob/ff7a9fa091a8bf2e10020f83fc4df1c44098bbbb/transport/src/main/java/io/netty/channel/nio/AbstractNioByteChannel.java#L245

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to