added duration support to ping stream to prevent leaks (not knowing if the client can still close the connection when they are done getting pings (have to experiment with the half open sockets)