Implement keep alive timeout, and while doing this, I realized that keepalive is either on or off, but there is no counter