move is_connection_dropped to util
bug fix in parse_hostport