made ping timeout after 2 seconds if no packet received