Regression: Change logic to check if connection is online on unstable networks (#25618)
* Change .race for .allsettled so rejections are handled better * improve to unstable check logic * CR suggestions
* Change .race for .allsettled so rejections are handled better * improve to unstable check logic * CR suggestions
mentioned in commit 0179e1b5