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

sync goroutine / configuration / service mgmt behavior with other go bouncers #136

Merged
merged 4 commits into from
Jun 12, 2023

Conversation

mmetc
Copy link
Contributor

@mmetc mmetc commented Jun 5, 2023

As you can see from the error in this PR, the new version of the stream bouncer takes a context object to synchronize the goroutines.

We should update the cloudflare bouncer, either by using a cancel function ( https://github.com/crowdsecurity/go-cs-bouncer/blob/main/examples/stream/stream_bouncer.go ) or, if possible, with the errgroup package like we've done in the other bouncers (firewall, custom, blocklist).

@mmetc mmetc marked this pull request as draft June 6, 2023 21:12
@mmetc mmetc requested a review from sbs2001 June 6, 2023 21:16
mmetc and others added 3 commits June 12, 2023 16:04
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@mmetc mmetc changed the title update dependencies to crowdsec 1.5.2; allow build with devel version of go sync goroutine / configuration / service mgmt behavior with other go bouncers Jun 12, 2023
@mmetc mmetc marked this pull request as ready for review June 12, 2023 12:43
@mmetc mmetc merged commit 9a42c34 into main Jun 12, 2023
@mmetc mmetc deleted the dep-update branch June 12, 2023 12:59
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