mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
This should increase the maximum amount of inflight data and hopefully the performance of Snowflake, especially for clients geographically distant from proxies and the server.
17 lines
573 B
Go
17 lines
573 B
Go
// Package turbotunnel provides support for overlaying a virtual net.PacketConn
|
|
// on some other network carrier.
|
|
//
|
|
// https://github.com/net4people/bbs/issues/9
|
|
package turbotunnel
|
|
|
|
import "errors"
|
|
|
|
// This magic prefix is how a client opts into turbo tunnel mode. It is just a
|
|
// randomly generated byte string.
|
|
var Token = [8]byte{0x12, 0x93, 0x60, 0x5d, 0x27, 0x81, 0x75, 0xf5}
|
|
|
|
// The size of receive and send queues.
|
|
const queueSize = 2048
|
|
|
|
var errClosedPacketConn = errors.New("operation on closed connection")
|
|
var errNotImplemented = errors.New("not implemented")
|