Merge pull request #65 from netty/send-composite
Fix composite buffer send bug
This commit is contained in:
commit
f19f04291e
@ -1351,7 +1351,7 @@ public final class CompositeBuffer extends RcSupport<Buffer, CompositeBuffer> im
|
|||||||
for (int i = 0; i < sends.length; i++) {
|
for (int i = 0; i < sends.length; i++) {
|
||||||
received[i] = sends[i].receive();
|
received[i] = sends[i].receive();
|
||||||
}
|
}
|
||||||
var composite = new CompositeBuffer(allocator, received, drop, true);
|
var composite = new CompositeBuffer(allocator, received, drop, false);
|
||||||
composite.readOnly = readOnly;
|
composite.readOnly = readOnly;
|
||||||
drop.attach(composite);
|
drop.attach(composite);
|
||||||
return composite;
|
return composite;
|
||||||
|
@ -350,7 +350,6 @@ public class BufferReferenceCountingTest extends BufferTestSupport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Disabled // TODO
|
|
||||||
@ParameterizedTest
|
@ParameterizedTest
|
||||||
@MethodSource("allocators")
|
@MethodSource("allocators")
|
||||||
public void sliceMustBecomeOwnedOnSourceBufferClose(Fixture fixture) {
|
public void sliceMustBecomeOwnedOnSourceBufferClose(Fixture fixture) {
|
||||||
|
Loading…
Reference in New Issue
Block a user