Factor verify_request_length() out of parse_client_request().