netbird/client/internal/peer
Zoltan Papp af27aaf9af
[client] Refactor peer state change subscription mechanism (#3910)
* Refactor peer state change subscription mechanism

Because the code generated new channel for every single event, was easy to miss notification.
Use single channel.

* Fix lint

* Avoid potential deadlock

* Fix test

* Add context

* Fix test
2025-06-03 09:20:33 +02:00
..
conntype [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
dispatcher [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
guard [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
ice [client] Remove logrus writer assignment in pion logging (#3684) 2025-04-15 18:15:52 +03:00
id [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
worker [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
conn_status_test.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
conn_status.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
conn_test.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
conn.go Fix deadlock (#3904) 2025-05-30 23:38:02 +02:00
error_test.go Test conn (#199) 2022-01-21 13:52:19 +01:00
error.go Test conn (#199) 2022-01-21 13:52:19 +01:00
handshaker.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
iface.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
listener.go Add OnDisconnecting service callback (#767) 2023-03-29 10:39:54 +02:00
nilcheck.go [client] Nil check on ICE remote conn (#2806) 2024-10-31 23:18:35 +01:00
notifier_test.go Update calculate server state (#796) 2023-04-10 18:22:25 +02:00
notifier.go [client, android] Fix/notifier threading (#3807) 2025-05-27 17:12:04 +02:00
route.go [client] Set up firewall rules for dns routes dynamically based on dns response (#3702) 2025-04-24 17:37:28 +02:00
signaler.go [relay] Feature/relay integration (#2244) 2024-09-08 12:06:14 +02:00
state_dump.go [client] add profiling dumps to debug package (#3517) 2025-03-23 13:46:09 +01:00
status_test.go [client] Refactor peer state change subscription mechanism (#3910) 2025-06-03 09:20:33 +02:00
status.go [client] Refactor peer state change subscription mechanism (#3910) 2025-06-03 09:20:33 +02:00
wg_watcher_test.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
wg_watcher.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
worker_ice.go [client] Feature/lazy connection (#3379) 2025-05-21 11:12:28 +02:00
worker_relay.go [client] Set info logs (#3504) 2025-03-14 22:34:41 +01:00