Upgrade your JDK to use FileRegion
This commit is contained in:
parent
049e97f03b
commit
52ef2a5330
@ -16,6 +16,7 @@
|
||||
package org.jboss.netty.channel;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.nio.channels.FileChannel;
|
||||
import java.nio.channels.WritableByteChannel;
|
||||
|
||||
import org.jboss.netty.util.ExternalResourceReleasable;
|
||||
@ -24,6 +25,23 @@ import org.jboss.netty.util.ExternalResourceReleasable;
|
||||
* A region of a file that is sent via a {@link Channel} which supports
|
||||
* zero-copy file transfer.
|
||||
*
|
||||
* <h3>Upgrade your JDK / JRE</h3>
|
||||
*
|
||||
* {@link FileChannel#transferTo(long, long, WritableByteChannel)} has at least
|
||||
* four known bugs in the old versions of Sun JDK and perhaps its derived ones.
|
||||
* Please upgrade your JDK to 1.6.0_18 or later version if you are going to use
|
||||
* zero-copy file transfer.
|
||||
* <ul>
|
||||
* <li><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5103988">5103988</a>
|
||||
* - FileChannel.transferTo should return -1 for EAGAIN instead throws IOException</li>
|
||||
* <li><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6253145">6253145</a>
|
||||
* - FileChannel.transferTo on Linux fails when going beyond 2GB boundary</li>
|
||||
* <li><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6427312">6427312</a>
|
||||
* - FileChannel.transferTo() throws IOException "system call interrupted</li>
|
||||
* <li><a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6524172">6470086</a>
|
||||
* - FileChannel.transferTo(2147483647, 1, channel) cause "Value too large" exception</li>
|
||||
* </ul>
|
||||
*
|
||||
* @author <a href="http://www.jboss.org/netty/">The Netty Project</a>
|
||||
* @author <a href="http://gleamynode.net/">Trustin Lee</a>
|
||||
* @version $Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
|
||||
|
Loading…
x
Reference in New Issue
Block a user