snowflake/common
David Fifield d2858aeb7e Revert "Take ownership of buffer in QueuePacketConn QueueIncoming/WriteTo."
This reverts commit 839d221883. (Except for
the added benchmarks in queuepacketconn_test.go.) This change
corresponds to the issues #40187 and #40199.

The analysis in https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40199
was wrong; kcp-go does reuse the buffers it passes to
QueuePacketConn.WriteTo. This led to unsynchronized reuse of packet
buffers and mangled packets observable at the client:
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/issues/40260.

Undoing the change in QueuePacketConn.QueueIncoming as well, for
symmetry, even though it is not implicated in any correctness problems.
2023-03-13 12:57:35 -06:00
..
amp format using go-1.19 2022-10-09 21:15:50 +02:00
bridgefingerprint Represent Bridge Fingerprint As String 2022-06-16 14:06:58 +01:00
encapsulation Benchmark for encapsulation.ReadData. 2022-11-16 13:48:34 -07:00
event change bandwidth type from int to int64 to prevent overflow 2022-11-21 10:33:21 -05:00
ipsetsink Use truncated hash instead crc64 for counted hash 2022-06-16 15:00:12 +01:00
messages format using go-1.19 2022-10-09 21:15:50 +02:00
namematcher Update Relay Pattern format to include dollar sign 2022-06-16 14:06:58 +01:00
nat Wrap client NAT log 2022-05-31 08:52:23 -07:00
safelog add some more test for URL encoded IPs (safelog) 2022-12-12 19:56:59 +01:00
task Wait some time before displaying the proxy usage log 2022-05-25 11:01:01 -04:00
turbotunnel Revert "Take ownership of buffer in QueuePacketConn QueueIncoming/WriteTo." 2023-03-13 12:57:35 -06:00
util Bump version of pion/sdp 2021-01-25 10:28:17 -05:00
utls Refactor utls roundtripper_test to deduplicate 2022-11-29 15:41:49 +00:00
version Update version to v2.5.1 2023-01-18 14:37:05 +00:00
websocketconn Benchmark websocket.Conn Upgrade creation. 2022-11-16 13:48:34 -07:00