quipo / statsd

Golang StatsD client
MIT License
164 stars 51 forks source link

Seems like the flush call has a race condition #38

Closed bburket closed 7 years ago

bburket commented 7 years ago

We would need to block the call to flush otherwise we could lose some events between when the events collection gets send to statds and when the collection is reset. Is this intentional?

bburket commented 7 years ago

Just released that go handles this synchronously via the select chan mechanism. Go will block automatically while flushing