)]}'
{"/PATCHSET_LEVEL":[{"author":{"_account_id":1000041,"name":"Ralf Lici","display_name":"Ralf Lici","email":"ralf@mandelbit.com","username":"ralf_lici"},"change_message_id":"1cfe614c67619c60a99e4bac3cf0bd758cc18b33","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":1,"id":"64442c68_91c50ce5","updated":"2026-09-28 13:39:44.000000000","message":"Tested with explicit `client-kill \u003cid\u003e HALT` (HALT is for asking the client to not reconnect immediately):\n\n```\n...\nMANAGEMENT: CMD \u0027client-kill 0 HALT\u0027\nDelayed exit in 5 seconds\nSENT CONTROL [client]: \u0027HALT\u0027 (status\u003d1)\nclient/udp4:10.10.10.2:42046 rx-peer-id\u003d0 UDPv4 WRITE [65] to [AF_INET]10.10.10.2:42046: P_CONTROL_V1 kid\u003d0 [ 4 3 2 1 ] pid\u003d7 DATA len\u003d27\nclient/udp4:10.10.10.2:42046 rx-peer-id\u003d0 UDPv4 WRITE [65] to [AF_INET]10.10.10.2:42046: P_CONTROL_V1 kid\u003d0 [ 4 3 2 1 ] pid\u003d7 DATA len\u003d27\nregister signal: SIGTERM (delayed-exit)\nclient/udp4:10.10.10.2:42046 rx-peer-id\u003d0 SIGTERM[soft,delayed-exit] received, client-instance exiting\ndco_get_peer: peer-id 0\novpn-dco: received netlink message type\u003d48 cmd\u003d3 flags\u003d0000\novpn_handle_peer: parsing message for peer 0...\ndco_update_peer_stat / dco_read_bytes: 554\ndco_update_peer_stat / dco_write_bytes: 410\ndco_update_peer_stat / tun_read_bytes: 290\ndco_update_peer_stat / tun_write_bytes: 290\nregister signal: SIGTERM (close_context)\ndco_del_peer: peer-id 0\ndco_read_and_process\novpn-dco: received netlink message type\u003d48 cmd\u003d5 flags\u003d0000\novpn-dco: received CMD_PEER_DEL_NTF, ifindex: 2, peer-id 0, reason: 1\nReceived DCO message for unknown peer-id: 0, type 5, del_peer_reason 1\n```\n\nAnd the negative path (with a peer expiring in the kernel):\n```\n...\nclient/udp4:10.10.10.2:51969 rx-peer-id\u003d0 Timers: ping 5, ping-restart 20\nclient/udp4:10.10.10.2:51969 rx-peer-id\u003d0 Protocol options: protocol-flags cc-exit tls-ekm dyn-tls-crypt\ndco_read_and_process\novpn-dco: received netlink message type\u003d48 cmd\u003d5 flags\u003d0000\novpn-dco: received CMD_PEER_DEL_NTF, ifindex: 2, peer-id 0, reason: 2\nclient/udp4:10.10.10.2:51969 rx-peer-id\u003d0 SIGTERM[soft,ovpn-dco: ping expired] received, client-instance exiting\nregister signal: SIGTERM (close_context)\n```\n\nThere are no dco_get_peer call during closure, and no redundant dco_del_peer, because dco_peer_id was reset to -1.","commit_id":"26a34ab6630a0828b1b505968eeb24c4b408047c"}]}
