This commit is contained in:
Clebert Suconic 2018-04-17 11:00:45 -04:00
commit e94e5b003c
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ public final class LargeServerMessageImpl extends CoreMessage implements LargeSe
validateFile();
file.open();
int fileSize = (int) file.size();
ByteBuffer buffer = this.storageManager.largeMessagesFactory.newBuffer(fileSize);
ByteBuffer buffer = ByteBuffer.allocate(fileSize);
file.read(buffer);
return new ChannelBufferWrapper(Unpooled.wrappedBuffer(buffer));
} catch (Exception e) {