in reply to what's with last;

Is there no way to match the keep-alive tcp packets from the client? hence it will be easier to terminate our socket.