Make sure FileRegion.releaseExternalResources() is called after the

write was done. See NETTY-440
This commit is contained in:
norman 2011-10-12 15:07:53 +02:00
parent fb408778d1
commit 2d25998eb4

View File

@ -288,7 +288,8 @@ final class SocketSendBufferPool {
}
public void release() {
// Unpooled.
// Make sure the FileRegion resource are released otherwise it may cause a FD leak or something similar
file.releaseExternalResources();
}
}