Make sure FileRegion.releaseExternalResources() is called after the
write was done. See NETTY-440
This commit is contained in:
parent
fb408778d1
commit
2d25998eb4
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user