From 1cbad745b5a27b13dde3297fdb5932d6761b4ec1 Mon Sep 17 00:00:00 2001 From: Heikki Vesalainen Date: Sat, 3 Jun 2017 12:39:27 +0300 Subject: [PATCH] Changed minimum value of rx2.buffer-size to 1 Before the minimum value you could set with the system variable `rx2.buffer-size` was 16. With this commit, that is changed to 1. --- src/main/java/io/reactivex/Flowable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/io/reactivex/Flowable.java b/src/main/java/io/reactivex/Flowable.java index 17b63d7970..73c8ef4526 100644 --- a/src/main/java/io/reactivex/Flowable.java +++ b/src/main/java/io/reactivex/Flowable.java @@ -60,7 +60,7 @@ public abstract class Flowable implements Publisher { /** The default buffer size. */ static final int BUFFER_SIZE; static { - BUFFER_SIZE = Math.max(16, Integer.getInteger("rx2.buffer-size", 128)); + BUFFER_SIZE = Math.max(1, Integer.getInteger("rx2.buffer-size", 128)); } /**