Make the minimum writable amount in the buffer configurable before stop to read from channel