0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00

dco-win: add halt check after connection attempt

parent->transport_connecting() might trigger stop(),
reset device handle and set halt to true if TCP server
is down. In this case we should not queue read.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
This commit is contained in:
Lev Stipakov 2022-10-13 14:11:33 +03:00 committed by David Sommerseth
parent ae99307219
commit 2958161e7f
No known key found for this signature in database
GPG Key ID: 86CF944C9671FDF2

View File

@ -232,6 +232,8 @@ protected:
add_peer_([self=Ptr(this)]() {
if (!self->halt) {
self->transport_parent->transport_connecting();
/* above line might set halt to true in case of TCP reconnect */
if (!self->halt)
self->queue_read_();
}
});