snowflake/proxy/lib
WofWca a615e8b1ab
fix(proxy): remove _potential_ deadlock
The `dc.Send()` should increase the `bufferedAmount` value,
so there is no need to add the message length a second time.

Also replace GT with GE, for the case where
`BufferedAmountLowThreshold === maxBufferedAmount`

Currently the deadlock cannot happen because `maxBufferedAmount`
and `BufferedAmountLowThreshold` are too far apart, in fact
the former is 2x the latter.

See
- https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/144#note_2902956
- https://github.com/pion/webrtc/pull/2473
- https://github.com/pion/webrtc/pull/2474
2023-10-09 15:15:45 +01:00
..
metrics.go feat: add option to expose the stats by using metrics 2023-07-28 14:23:22 +01:00
proxy-go_test.go Use ShouldBeNil to check for nil values 2023-09-20 12:34:51 -04:00
pt_event_logger.go Move the development to gitlab 2023-05-31 10:01:47 +02:00
pt_event_metrics.go feat: add option to expose the stats by using metrics 2023-07-28 14:23:22 +01:00
snowflake.go Change DefaultRelayURL back to wss://snowflake.torproject.net/. 2023-07-29 22:33:26 +00: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 fix: up/down traffic stats being mixed up 2023-02-09 11:45:09 -08:00
webrtcconn.go fix(proxy): remove _potential_ deadlock 2023-10-09 15:15:45 +01:00