1. 04 Dec, 2020 1 commit
    • Cecylia Bocovich's avatar
      Create new smux session for each SOCKS connection · 114df695
      Cecylia Bocovich authored
      Each SOCKS connection has its own set of snowflakes and broker poll
      loop. Since the session manager was tied to a single set of snowflakes,
      this resulted in a bug where RedialPacketConn would sometimes try to
      pull snowflakes from a previously melted pool. The fix is to maintain
      separate smux sessions for each SOCKS connection, tied to its own
      snowflake pool.
      114df695
  2. 27 Nov, 2020 1 commit
    • Philipp Winter's avatar
      Sort snowflake-ips stats by country count. · 5efcde51
      Philipp Winter authored
      We currently don't sort the snowflake-ips metrics:
      
          snowflake-ips CA=1,DE=1,AR=1,NL=1,FR=1,GB=2,US=4,CH=1
      
      To facilitate eyeballing our metrics, this patch sorts snowflake-ips by
      value.  If the value is identical, we sort by string, i.e.:
      
          snowflake-ips US=4,GB=2,AR=1,CA=1,CH=1,DE=1,FR=1,NL=1
      
      This patch fixes #40011
      5efcde51
  3. 23 Nov, 2020 1 commit
    • Cecylia Bocovich's avatar
      Remove for loop around broker.Negotiate · 665d76c5
      Cecylia Bocovich authored
      Instead of continuously polling the broker until the client receives a
      snowflake, fail back to the Connect() loop and try again to collect more
      peers after ReconnectTimeout.
      665d76c5
  4. 20 Nov, 2020 2 commits
  5. 18 Nov, 2020 2 commits
  6. 06 Nov, 2020 1 commit
  7. 05 Nov, 2020 2 commits
  8. 29 Oct, 2020 3 commits
  9. 23 Oct, 2020 1 commit
  10. 15 Oct, 2020 1 commit
    • Cecylia Bocovich's avatar
      Add synchronization to prevent post-melt collects · 6baa3c4d
      Cecylia Bocovich authored
      This fixes a race condition in which snowflakes.End() is called while
      snowflakes.Collect() is in progress resulting in a write to a closed
      channel. We now wait for all in-progress collections to finish and add
      an extra check before proceeding with a collection.
      6baa3c4d
  11. 05 Oct, 2020 1 commit
  12. 21 Sep, 2020 1 commit
  13. 27 Aug, 2020 3 commits
  14. 24 Aug, 2020 1 commit
    • Cecylia Bocovich's avatar
      Update broker stats to include info on NAT types · 3c331750
      Cecylia Bocovich authored
      As we now partition proxies by NAT type, our stats are more useful if they
      capture how many proxies of each type we have, and information on
      whether we have enough proxies of the right NAT type for our clients.
      This change adds proxy counts by NAT type and binned counts of denied clients by NAT type.
      3c331750
  15. 30 Jul, 2020 1 commit
    • Cecylia Bocovich's avatar
      Add response header timeouts to broker transports · d5ae7562
      Cecylia Bocovich authored
      The client and proxy use the net/http default transport to make round
      trip connecitons to the broker. These by default don't time out and can
      wait indefinitely for the broker to respond if the broker hangs and
      doesn't terminate the connection.
      d5ae7562
  16. 24 Jul, 2020 1 commit
  17. 23 Jul, 2020 1 commit
  18. 14 Jul, 2020 3 commits
  19. 09 Jul, 2020 1 commit
  20. 06 Jul, 2020 5 commits
  21. 19 Jun, 2020 1 commit
  22. 07 May, 2020 1 commit
  23. 05 May, 2020 1 commit
  24. 01 May, 2020 1 commit
    • David Fifield's avatar
      Format the establishDataChannel error log message like other log messages. · c8293a5d
      David Fifield authored
      It was sticking out in the context of other log messages.
      
      2020/04/30 22:39:10 WebRTC: DataChannel created.
      2020/04/30 22:39:20 establishDataChannel: timeout waiting for DataChannel.OnOpen
      2020/04/30 22:39:20 WebRTC: closing PeerConnection
      2020/04/30 22:39:20 WebRTC: Closing
      2020/04/30 22:39:20 WebRTC: WebRTC: Could not establish DataChannel  Retrying in 10s...
      c8293a5d
  25. 28 Apr, 2020 3 commits