Can someone explain why we aren't using sendfile() in the transferTo0 call for the case of a file transfer to a network socket in FileChannelImpl.c?
Also, my understanding is that if this call cannot do a sendfile(), it should return IOS_UNSUPPORTED_CASE. This will tell the caller to do a loop-based transfer (see sun.nio.ch.FileChannelImpl.transferTo(), line 531). Cheers, Michael