faster and reliable checks of connection without stalls