How about we'll add dco_check_timeout(int, context) to dco.h with platform
specific implementations?

Here is what I just did for Windows (Linux part is no-nop):
https://github.com/lstipakov/openvpn/commit/ce242896c621273578a446c5194d5ca6aee04237

ke 27. huhtik. 2022 klo 15.32 Lev Stipakov (lstipa...@gmail.com) kirjoitti:

> Hi,
>
> @Lev, just a heads up: does dco-win deal with this case? It would be
>> good to have a look on your side too.
>>
>
> Good point - this functionality (dco keepalive timeout) works in openvpn3
> but not in openvpn2.
>
> dco-win notifies userspace about keepalive timeout by returning certain
> error code (STATUS_CONNECTION_DISCONNECTED in kernel
> which translates to GetLastError 64 ERROR_NETNAME_DELETED, don't ask me
> why) in response to read request, so we should catch it
> inside read_incoming_link() after link_socket_read() call. Will do.
>
> --
> -Lev
>


-- 
-Lev
_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to