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

fix: Use different clientID for each EventBus reconnection. Fixes #1055 #1061

Merged
merged 4 commits into from Feb 9, 2021

Conversation

whynowy
Copy link
Member

@whynowy whynowy commented Feb 8, 2021

Signed-off-by: Derek Wang whynowy@gmail.com

Checklist:

@whynowy whynowy changed the title fix: Use differet clientID for each EventBus reconnection. Fixes #1055 fix: Use different clientID for each EventBus reconnection. Fixes #1055 Feb 8, 2021
@@ -47,7 +47,7 @@ ENTRYPOINT [ "/bin/eventsource" ]
####################################################################################################
# sensor
####################################################################################################
FROM alpine as sensor
FROM alpine:3.12.3 as sensor
Copy link
Member Author

Choose a reason for hiding this comment

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

The latest alpine release (v3.13.x) has DNS resolving issue, pin to 3.12.3.

Signed-off-by: Derek Wang <whynowy@gmail.com>
@@ -382,3 +391,10 @@ func (e *EventSourceAdaptor) Start(ctx context.Context) error {
}
}
}

func generateClientID(hostname string) string {
s1 := rand.NewSource(time.Now().UnixNano())
Copy link
Contributor

Choose a reason for hiding this comment

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

rather than using rand, what about using an RFC compliant UUID?

Copy link
Contributor

Choose a reason for hiding this comment

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

@whynowy whynowy merged commit bf63a4d into argoproj:master Feb 9, 2021
@whynowy whynowy deleted the ebreconn branch February 9, 2021 16:58
juliev0 pushed a commit to juliev0/argo-events that referenced this pull request Mar 29, 2022
…oproj#1055 (argoproj#1061)

* fix: Use differet clientID for each EventBus reconnection. Fixes argoproj#1055

Signed-off-by: Derek Wang <whynowy@gmail.com>

* comment

Signed-off-by: Derek Wang <whynowy@gmail.com>

* tiny

Signed-off-by: Derek Wang <whynowy@gmail.com>
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.

None yet

2 participants