refine connect_timeout