[tor-bugs] #21312 [Obfuscation/Snowflake]: snowflake-client is pegged at 100% cpu
Tor Bug Tracker & Wiki
blackhole at torproject.org
Thu Mar 15 08:01:59 UTC 2018
#21312: snowflake-client is pegged at 100% cpu
-----------------------------------+------------------------------
Reporter: arlolra | Owner: arlolra
Type: defect | Status: needs_review
Priority: High | Milestone:
Component: Obfuscation/Snowflake | Version:
Severity: Major | Resolution:
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
-----------------------------------+------------------------------
Comment (by yawning):
There is also `sync.Once`.
{{{
type Foo struct {
destroyOnce sync.Once
}
func (f *Foo) Destroy() {
f.destroyOnce.Do(func() {
// Things that MUST only happen once, here.
})
}
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/21312#comment:51>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list