On Tue, Dec 10, 2013 at 4:44 PM, Kevin Cernekee <cernekee at gmail.com> wrote: > The DPD/Keepalive messages have not been good for mobile battery life. > Now I am experimenting with dropping the TCP connection, and > waking+reconnecting just often enough to keep the server from > invalidating the cookie. > > BTW, another problem I noticed: if there is a stale CSTP connection > active and the client attempts to reconnect, ocserv will kill the old > connection and give the client his old IP again. But if I close() the > CSTP connection (killall -9 openconnect), then reconnect using the > same cookie, the IP changes and this confuses openconnect. I cannot reproduce that. Could you try with the latest git? I want to check what is the reason that the initial IP wasn't used. regards, Nikos