snowflake/proxy/lib
WofWca cb0fb02cd5
fix(proxy): not answering before client timeout
This is related to
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40230.

The initial MR that closed that issue,
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/391,
was not semantically correct, because `DataChannelTimeout`
starts after the client has already received the answer.

After
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/498#note_3156256
the code became not only semantically incorrect,
but also functionally incorrect because now if this timeout is hit
by the proxy, the client is guaranteed to be gone already.
This commit fixes it, by lowering the timeout.

This addresses a suggestion in
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40447.

This also closes
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40381
and supersedes
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/415.
2025-02-12 10:17:08 -05:00
..
metrics.go Document that prometheus transfer metrics are in KB 2023-11-20 10:40:34 -05:00
proxy-go_test.go improvement: use SetIPFilter for local addrs 2024-11-28 10:56:40 -05:00
pt_event_logger.go Log EventOnCurrentNATTypeDetermined for proxy 2024-12-03 15:05:44 -05:00
pt_event_metrics.go Update prometheus metrics to use new EventOnProxyStats 2023-10-31 13:11:38 -04:00
snowflake.go fix(proxy): not answering before client timeout 2025-02-12 10:17:08 -05: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 update snowflake to use pion webrtc v4 2024-11-13 14:58:53 +00:00