added configuration option for read_buffer_size - #247