Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[client] Fix controller re-connection #2758

Merged
merged 86 commits into from
Oct 24, 2024
Merged

Conversation

pappz
Copy link
Contributor

@pappz pappz commented Oct 18, 2024

Describe your changes

Rethink the peer reconnection code organization.

Watch these events:

  • Relay client reconnected to home server
  • Signal server connection state changed
  • ICE connection disconnected
  • Relayed connection disconnected
  • ICE candidate changes

Fixed issues:

  • Fix exponent ticker timeout cancellation
  • Fix missed disconnected events handling
  • Start to use reconnected events

Issue ticket number and link

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

@pappz pappz changed the title [client] fix controller re-connection [client] Fix controller re-connection Oct 21, 2024
@pappz pappz marked this pull request as ready for review October 21, 2024 09:28
Base automatically changed from eliminate-udp-proxy to main October 22, 2024 18:53
@@ -10,6 +12,7 @@ type USPFactory struct {
}

func NewUSPFactory(iceBind *bind.ICEBind) *USPFactory {
log.Infof("WireGuard Proxy Factory will produce bind proxy")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should these new logs be Debug level?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this log line is really important to know in any case. And it will appear only once time. We support 3 different implementation and good to know what is the active.

client/iface/wgproxy/udp/proxy.go Outdated Show resolved Hide resolved
client/iface/wgproxy/udp/proxy.go Show resolved Hide resolved
lixmal
lixmal previously approved these changes Oct 23, 2024
lixmal
lixmal previously approved these changes Oct 24, 2024
Copy link

sonarcloud bot commented Oct 24, 2024

@pappz pappz merged commit 4e918e5 into main Oct 24, 2024
21 checks passed
@pappz pappz deleted the relay/fix-controller-reconnection branch October 24, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants