Skip to content

feat: check if peer exists before proxying #14

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

Merged
merged 2 commits into from
Mar 28, 2023
Merged

Conversation

coadler
Copy link
Contributor

@coadler coadler commented Mar 28, 2023

No description provided.

@coadler coadler requested a review from deansheather March 28, 2023 14:40
@coadler coadler self-assigned this Mar 28, 2023
tunnelsdk/api.go Outdated
@@ -20,7 +21,8 @@ type ClientRegisterRequest struct {
}

type ClientRegisterResponse struct {
Version TunnelVersion `json:"version"`
Version TunnelVersion `json:"version"`
PollEvery time.Duration `json:"poll_every"`
Copy link
Member

Choose a reason for hiding this comment

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

How about ReregisterAt time.Time instead, and then make the client loop sleep until that time after each request

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since the client will be running on machines we don't control and possibly with out of date clocks, I think it's probably safer to use a duration here

@coadler coadler merged commit f8dd0eb into main Mar 28, 2023
@coadler coadler deleted the colin/better-errs branch March 28, 2023 19:25
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