netbird/client/internal
Misha Bragin 762a26dcea
Fix Register/Deregister race on Signal (#431)
This PR fixes a race condition that happens
when agents connect to a Signal stream, multiple
times within a short amount of time. Common on
slow and unstable internet connections.
Every time an agent establishes a new connection
to Signal, Signal creates a Stream and writes an entry
to the registry of connected peers storing the stream.
Every time an agent disconnects, Signal removes the
stream from the registry.
Due to unstable connections, the agent could detect
a broken connection, and attempt to reconnect to Signal.
Signal will override the stream, but it might detect
the old broken connection later, causing peer deregistration.
It will deregister the peer leaving the client thinking
it is still connected, rejecting any messages.
2022-08-22 12:21:19 +02:00
..
peer Decrease log level on peer status remove (#410) 2022-08-01 17:52:22 +02:00
proxy Handle peer interface config change (#348) 2022-06-04 19:41:01 +02:00
config_test.go Add Settings window to Agent UI 2022-04-15 17:30:12 +02:00
config.go Check and update Agent's Management URL if is legacy (#406) 2022-07-30 19:17:18 +02:00
connect.go Check and update Agent's Management URL if is legacy (#406) 2022-07-30 19:17:18 +02:00
engine_test.go Add client status collection (#368) 2022-07-02 12:02:17 +02:00
engine.go Fix Register/Deregister race on Signal (#431) 2022-08-22 12:21:19 +02:00
login.go Check and update Agent's Management URL if is legacy (#406) 2022-07-30 19:17:18 +02:00
oauth_test.go Client Login via device authorization flow (#309) 2022-05-12 11:17:24 +02:00
oauth.go Unblock menu when login (#340) 2022-05-28 18:37:08 +02:00
state.go Client Login via device authorization flow (#309) 2022-05-12 11:17:24 +02:00