snowflake/proxy/lib
WofWca 01819eee32
fix(proxy): race condition warning for isClosing
It appears that there is no need for the `isClosing` var at all:
we can just `close(c.sendMoreCh)` to ensure that it doesn't block
any more `Write()`s.

This is a follow-up to
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/144.
Related:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/524.
2025-03-11 15:50:53 -04:00
..
metrics.go feat(proxy): add failed connection count stats 2025-03-11 13:12:44 +00:00
proxy-go_test.go improvement: use SetIPFilter for local addrs 2024-11-28 10:56:40 -05:00
pt_event_logger.go feat(proxy): add failed connection count stats 2025-03-11 13:12:44 +00:00
pt_event_metrics.go feat(proxy): add failed connection count stats 2025-03-11 13:12:44 +00:00
snowflake.go fix(proxy): race condition warning for isClosing 2025-03-11 15:50:53 -04:00
tokens.go Comment package and minor changes exports 2021-10-26 15:49:46 -04:00
tokens_test.go Comment package and minor changes exports 2021-10-26 15:49:46 -04:00
util.go Zero bytesSyncLogger stats after reading them 2023-10-30 12:42:45 -04:00
webrtcconn.go fix(proxy): race condition warning for isClosing 2025-03-11 15:50:53 -04:00