update for code review feedback: rename parameter rawConnection to persistentConnection