Niklas Therning wrote:
> It seems like a great idea! Though, just like you say, there > would probably be some issues which we need to sort out. Add > it to JIRA. Will do. > BTW, have you had a look at the StreamWriteFilter? It doesn't > do exactly what you want but it could be helpful if you want > to write the contents of a file. Yeah - that seems like a great filter! Im surprised I didn't notice that before! I've yet to do performance comparisons of the various file transfer alternatives vs file size vs frequency of transfer - and I'll probably employ different strategies for different contexts. However, something I'd really like to make use of is FileChannel#transferTo - as Im guessing this is probably making use of something smart like sendfile behind the scenes - saving us running all the contents through user space. The command approach is one way to do that - but I fear it is fraught with complexity. The simple approach is to go with an explicit IoSession#sendFile, or a filter which handles writes of FileChannels explicitly (like StreamWriteFilter does for InputStreams). WDYT? This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
