poll the network with timeout instead of sleeping