1
0
Fork 0

unetmsg: reconnect on loss of tx connection

Avoids half-connected broken state

Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
Felix Fietkau 2025-05-12 11:00:34 +02:00
parent 44ef343500
commit 929702fdc5
1 changed files with 4 additions and 0 deletions

View File

@ -337,6 +337,10 @@ function network_open_channel(net, name, peer)
delete net.tx_channels[sock_data.name]; delete net.tx_channels[sock_data.name];
network_tx_socket_close(sock_data); network_tx_socket_close(sock_data);
if (net.timer.remaining() > 0)
return;
net.timer.set(sock_data.auth ? 100 : 10000);
}; };
sock_data.socket = sock; sock_data.socket = sock;