File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
rsocket-core/src/main/java/io/rsocket/buffer Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11
11
# See the License for the specific language governing permissions and
12
12
# limitations under the License.
13
13
#
14
- version =1.0.0-RC5
14
+ version =1.0.0-RC6-SNAPSHOT
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ abstract class AbstractTupleByteBuf extends AbstractReferenceCountedByteBuf {
16
16
static final int DEFAULT_DIRECT_MEMORY_CACHE_ALIGNMENT =
17
17
SystemPropertyUtil .getInt ("io.netty.allocator.directMemoryCacheAlignment" , 0 );
18
18
static final ByteBuffer EMPTY_NIO_BUFFER = Unpooled .EMPTY_BUFFER .nioBuffer ();
19
+ static final int NOT_ENOUGH_BYTES_AT_MAX_CAPACITY_CODE = 3 ;
19
20
20
21
final ByteBufAllocator allocator ;
21
22
final int capacity ;
@@ -294,7 +295,7 @@ public ByteBuf ensureWritable(int minWritableBytes) {
294
295
295
296
@ Override
296
297
public int ensureWritable (int minWritableBytes , boolean force ) {
297
- return 0 ;
298
+ return NOT_ENOUGH_BYTES_AT_MAX_CAPACITY_CODE ;
298
299
}
299
300
300
301
@ Override
You can’t perform that action at this time.
0 commit comments