ping improvement : wait for response or error to ping again; disable keepalive