fix doc's config example, simplify read timeout logic