add ping_timeout function option