Skip to content
Snippets Groups Projects
  1. Dec 03, 2024
  2. Nov 28, 2024
  3. Nov 21, 2024
  4. Nov 18, 2024
  5. Nov 13, 2024
  6. Nov 11, 2024
  7. Nov 06, 2024
  8. Oct 23, 2024
  9. Sep 24, 2024
  10. Sep 23, 2024
  11. Aug 27, 2024
  12. Jul 11, 2024
  13. May 28, 2024
  14. May 09, 2024
  15. Mar 18, 2024
  16. Mar 09, 2024
  17. Feb 27, 2024
  18. Feb 17, 2024
  19. Feb 05, 2024
  20. Jan 31, 2024
  21. Jan 22, 2024
  22. Jan 08, 2024
    • Arlo Breault's avatar
      Scrub space separated ip addresses · e4c818be
      Arlo Breault authored and Cecylia Bocovich's avatar Cecylia Bocovich committed
      The issue with ReplaceAllFunc is that it's capturing the leading and
      trailing spaces in the regexp, so successive ips don't match.  From the
      docstring,
      
      > If 'All' is present, the routine matches successive non-overlapping
      > matches of the entire expression.
      
      For #40306
      e4c818be
  23. Jan 04, 2024
  24. Dec 21, 2023
  25. Nov 20, 2023
  26. Nov 07, 2023
  27. Oct 31, 2023
  28. Oct 30, 2023
  29. Oct 24, 2023
  30. Oct 16, 2023
  31. Oct 09, 2023
  32. Sep 20, 2023
  33. Sep 11, 2023
  34. Jun 29, 2023
    • David Fifield's avatar
      Close temporary UDPSession in TestQueuePacketConnWriteToKCP. · 58c3121c
      David Fifield authored
      With these not being closed, they were continuing to consume resources
      after the return of the test function, which was affecting the later
      BenchmarkSendQueue.
      
      Before:
      ```
      snowflake/common/turbotunnel$ go test -bench BenchmarkSendQueue -v
      === RUN   TestQueueIncomingOversize
      --- PASS: TestQueueIncomingOversize (0.00s)
      === RUN   TestWriteToOversize
      --- PASS: TestWriteToOversize (0.00s)
      === RUN   TestRestoreMTU
      --- PASS: TestRestoreMTU (0.00s)
      === RUN   TestRestoreCap
      --- PASS: TestRestoreCap (0.00s)
      === RUN   TestQueuePacketConnWriteToKCP
      --- PASS: TestQueuePacketConnWriteToKCP (1.01s)
      goos: linux
      goarch: amd64
      pkg: gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel
      cpu: Intel(R) Core(TM) i5 CPU         680  @ 3.60GHz
      BenchmarkSendQueue
      BenchmarkSendQueue-4     8519708               136.0 ns/op
      PASS
      ok      gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel  3.481s
      ```
      
      After:
      ```
      snowflake/common/turbotunnel$ go test -bench BenchmarkSendQueue -v
      === RUN   TestQueueIncomingOversize
      --- PASS: TestQueueIncomingOversize (0.00s)
      === RUN   TestWriteToOversize
      --- PASS: TestWriteToOversize (0.00s)
      === RUN   TestRestoreMTU
      --- PASS: TestRestoreMTU (0.00s)
      === RUN   TestRestoreCap
      --- PASS: TestRestoreCap (0.00s)
      === RUN   TestQueuePacketConnWriteToKCP
      --- PASS: TestQueuePacketConnWriteToKCP (1.02s)
      goos: linux
      goarch: amd64
      pkg: gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel
      cpu: Intel(R) Core(TM) i5 CPU         680  @ 3.60GHz
      BenchmarkSendQueue
      BenchmarkSendQueue-4    11620237               105.7 ns/op
      PASS
      ok      gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/v2/common/turbotunnel  3.244s
      ```
      58c3121c
Loading