67 Commits (b0c10fa61027e261fbc60bb8e8ea0c8259d2ef7a)

Author SHA1 Message Date
Brad Fitzpatrick e6b84f2159 all: make client use server-provided DERP map, add DERP region support 6 years ago
Brad Fitzpatrick 040a0d5121 derp/derphttp: don't use x/net/proxy for SOCKS on iOS 6 years ago
Brad Fitzpatrick e42ec4efba derp/derphttp: use SOCKS/etc proxies for derphttp dials 6 years ago
Brad Fitzpatrick 495796fff1 derp/derpmap: add World.ForeachServer, check STUN server validity earlier 6 years ago
Brad Fitzpatrick fefd7e10dc types/structs: add structs.Incomparable annotation, use it where applicable 6 years ago
Brad Fitzpatrick b6fa5a69be net/tlsdial: add package for TLS dials, and make DERP & controlclient use it 6 years ago
Brad Fitzpatrick 614eec174f derp/derphttp: avoid endless reconnect race on failure 6 years ago
Dmitry Adamushko 806645ea0e derp: prevent readFrame() from reading more than len(b) bytes. 6 years ago
Dmitry Adamushko f2c2d0de68 derp/derp_server: unregisterClient() for replaced client connections. 6 years ago
Dmitry Adamushko 44434fdc82 derp/derp_server: fixed unbalanced {register,unregister}Client() calls. 6 years ago
David Anderson 4e0ee141e8 derp/derpmap: add derp5 (Sydney) to prod map. 6 years ago
Brad Fitzpatrick 1df3c8d02a derp, netcheck: make tests listen on localhost only 6 years ago
Brad Fitzpatrick e749377a56 derp/derphttp: remove a redundant log message 6 years ago
Brad Fitzpatrick 1d3f45f9be derp/derphttp: ignore PeerGoneMessage in test 6 years ago
Brad Fitzpatrick 1ab5b31c4b derp, magicsock: send new "peer gone" frames when previous sender disconnects 6 years ago
Brad Fitzpatrick 8c4cef60f8 derp: wait for send goroutine to finish before returning from run 6 years ago
Brad Fitzpatrick 521ad7b0fc derp: only flush writes to clients when we're out of things to write 6 years ago
Brad Fitzpatrick 0a25abcdaa derp: remove TODO comment 6 years ago
Brad Fitzpatrick 8519a1b29f derp: revert rename of pkt to sendMsg 6 years ago
Brad Fitzpatrick c34b350efa derp: remove the mutex around and closing of send channel 6 years ago
Brad Fitzpatrick 77921a31b1 derp: rename pkt to sendMsg, in prep for other types of writes 6 years ago
Brad Fitzpatrick 1453aecb44 derp: add sclient.done channel, simplify some context passing 6 years ago
David Anderson ea90780066 derp: specify type of the by-reason drop varz. 6 years ago
Brad Fitzpatrick fd824df1fa derp: export metric for server's initial MemStats.Sys reading 6 years ago
David Anderson 64b5248929 derp: sprinkle comments and docstrings. 6 years ago
David Anderson 58b8ebd290 derp: add per-reason packet drop counter. 6 years ago
David Anderson 1e031001db derp: move write timeout to package constant. 6 years ago
David Anderson dbfc916273 derp: add short queues between reader and writer, drop on overload. 6 years ago
David Crawshaw 131541c06d derp: deflake test 6 years ago
David Crawshaw 72dbf26f63 derp: test that client a->b and a->c relaying do not interfere 6 years ago
David Crawshaw e838b3fb59 derp: use a write timeout when sending to clients 6 years ago
David Crawshaw 3df1b97ea8 derp: do not treat failure to relay as the fault of the sender 6 years ago
David Crawshaw 43aa8595dd derp: introduce Conn interface 6 years ago
Brad Fitzpatrick 4fd29349b9 derp: add clients_replaced counter 6 years ago
Brad Fitzpatrick 39c0ae1dba derp/derpmap: new DERP config package, merge netcheck into magicsock more 6 years ago
Brad Fitzpatrick 5d8001d0ad derp: add varz for home moves 6 years ago
Brad Fitzpatrick e733fa6f7e derp: add some varz tests for active/home conns 6 years ago
Brad Fitzpatrick dd456f04c5 derp: actually record client's preferred bit 6 years ago
Brad Fitzpatrick 6978b93bdd derp, magicsock: track home (preferred) vs visiting connections for stats 6 years ago
Brad Fitzpatrick cf4aacde57 derp/derphttp: appease staticcheck 6 years ago
Brad Fitzpatrick 2cff9016e4 net/dnscache: add overly simplistic DNS cache package for selective use 6 years ago
Brad Fitzpatrick bf704a5218 derp: protocol negotiation, add v2: send src pub keys to clients in packets 6 years ago
David Crawshaw 9be9738f62 derphttp: add TLSConfig field 6 years ago
Brad Fitzpatrick e371520cc5 tsweb, derp: add expvar http.Handler for Prometheus's format 6 years ago
Brad Fitzpatrick 517a91de75 derp/derphttp: fix reconnect behavior 6 years ago
Brad Fitzpatrick d59d0576af derp: don't log on all dropped packets; super spammy 6 years ago
Brad Fitzpatrick 38acccad09 derp: remove some debug noise I left in 6 years ago
Brad Fitzpatrick 752146a70f derp: clean up derphttp client code, use contexts 6 years ago
Brad Fitzpatrick 3317531021 derp: fix JSON field typo, sort fields to make it easier to see inconsistencies 6 years ago
Brad Fitzpatrick 6cd81d5d1f derp: add more derp stats for dropped and received packets 6 years ago