Adding keep alive to socket.