netbird/client/cmd
Zoltan Papp 998fb30e1e
[client] Check the client status in the earlier phase (#4509)
This PR improves the NetBird client's status checking mechanism by implementing earlier detection of client state changes and better handling of connection lifecycle management. The key improvements focus on:

  • Enhanced status detection - Added waitForReady option to StatusRequest for improved client status handling
  • Better connection management - Improved context handling for signal and management gRPC connections• Reduced connection timeouts - Increased gRPC dial timeout from 3 to 10 seconds for better reliability
  • Cleaner error handling - Enhanced error propagation and context cancellation in retry loops

  Key Changes

  Core Status Improvements:
  - Added waitForReady optional field to StatusRequest proto (daemon.proto:190)
  - Enhanced status checking logic to detect client state changes earlier in the connection process
  - Improved handling of client permanent exit scenarios from retry loops

  Connection & Context Management:
  - Fixed context cancellation in management and signal client retry mechanisms
  - Added proper context propagation for Login operations
  - Enhanced gRPC connection handling with better timeout management

  Error Handling & Cleanup:
  - Moved feedback channels to upper layers for better separation of concerns
  - Improved error handling patterns throughout the client server implementation
  - Fixed synchronization issues and removed debug logging
2025-09-20 22:14:01 +02:00
..
debug_unix.go [client] Feat: Support Multiple Profiles (#3980) 2025-07-25 16:54:46 +03:00
debug_windows.go [client] Feat: Support Multiple Profiles (#3980) 2025-07-25 16:54:46 +03:00
debug.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
down.go [client] Use native windows sock opts to avoid routing loops (#4314) 2025-09-20 09:31:04 +02:00
forwarding_rules.go [client, management] Add port forwarding (#3275) 2025-03-09 16:06:43 +01:00
login_test.go [client] Feat: Support Multiple Profiles (#3980) 2025-07-25 16:54:46 +03:00
login.go [client] Move some sys info to static place (#4446) 2025-09-06 10:49:28 +02:00
logout.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
networks.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
pprof.go [client] Add pprof build tag (#2964) 2024-12-01 19:22:52 +01:00
profile.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
root_test.go [client] Add flag to configure MTU (#4213) 2025-08-26 16:00:14 +02:00
root.go [client] Check the client status in the earlier phase (#4509) 2025-09-20 22:14:01 +02:00
service_controller.go [client] Move some sys info to static place (#4446) 2025-09-06 10:49:28 +02:00
service_installer.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
service_test.go [client] Add env and status flags for netbird service command (#3975) 2025-07-24 13:34:55 +02:00
service.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
ssh.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
state.go Change Netbird to NetBird in CMD (#4296) 2025-08-06 18:32:35 +02:00
status_test.go [client] Add netbird ui improvements (#3222) 2025-02-21 16:29:21 +01:00
status.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00
system.go [management] Refactor routes to use store methods (#2928) 2025-06-18 16:40:29 +03:00
testutil_test.go [management] Extends integration and peers manager (#4450) 2025-09-06 13:13:49 +03:00
trace.go [client] Improve icmp conntrack log (#3963) 2025-06-16 10:12:59 +02:00
up_daemon_test.go [client] Feat: Support Multiple Profiles (#3980) 2025-07-25 16:54:46 +03:00
up.go [client] Check the client status in the earlier phase (#4509) 2025-09-20 22:14:01 +02:00
version.go Improve wording in the NetBird client app (#4316) 2025-08-13 22:03:48 +02:00