Send ping and use pong to calculate timeout