Hi, On Thu, Apr 14, 2022 at 06:03:57PM +0800, yuanxun wrote: > Recently found a problem with openvpn > > environment: > > Linux version 5.4.0-100-generic (buildd@lcy02-amd64-002) (gcc version 9.3.0 > (Ubuntu 9.3.0-17ubuntu1~20.04)) > > OpenVPN 2.6_git [git:dco/a503c91735538f21] x86_64-pc-linux-gnu [SSL > (OpenSSL)] [LZO] [EPOLL] [MH/PKTINFO] [AEAD] [DCO] > > When the Windows client is disconnected, the management interface "status" > is used on the server, and the connected client will not exit immediately.
This depends on *how* the client is disconnected, and how it was connected to start with. On a TCP connection, the server knows (because TCP goes away). On an UDP session, the server can't know whether the client has been disconnected or is just "not sending anything", so how long it will take to update the status file depends on the "keepalive" settings (no keepalive = it might never update the status) and whether or not the client is using "explicit-exit-notify" <<- "tell the server the client was shutdown". But even if explicit-exit-notify, it might run into timeout delays, if the client is not properly disconnected but the machine crashes, the internet router dies, ... So, yes, this is the way it is. If you think this is a problem, be more specific, like "client config, server and client log when the client disconnects (both with --verb 4), etc" gert -- "If was one thing all people took for granted, was conviction that if you feed honest figures into a computer, honest figures come out. Never doubted it myself till I met a computer with a sense of humor." Robert A. Heinlein, The Moon is a Harsh Mistress Gert Doering - Munich, Germany g...@greenie.muc.de
signature.asc
Description: PGP signature
_______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel