for bug #241, simplify the merged read config macros.
for bug #241, simplify the buffer, donot reset when chunk size change.
for bug#241, simplify the buffer, donot change its size.
for bug#241, simplify the buffer, donot realloc it.