Commit Graph

35 Commits (e696b181876d7279e22c573d12a8b1f525c9616c)

Author SHA1 Message Date
name e696b18187 format using goimports 1 year ago
Andy Wang 8dd4ae4bef
Better conform message data length to TLS standards 3 years ago
Andy Wang f322f8b47f
Randomise echo test data 3 years ago
Andy Wang d1b05ee9e5
Add new encryption method option aes-128-gcm 3 years ago
Andy Wang 3ad04aa7e9
Add latency benchmark 3 years ago
Andy Wang 4209483a48
Reduce memory pressure in tests 3 years ago
Andy Wang 3b24c33e78
Remove incorrect concurrent uses of testing.T.Fatal 3 years ago
Andy Wang a97f5759c0
Fix race condition in tests 3 years ago
Andy Wang 0d3f8dd27f
Allow DatabasePath to be empty if user info database is never used 3 years ago
Andy Wang 4a37449d33
Replace all time-sensitive tests with assert.Eventually 3 years ago
不确定 cfbf0dfcb6
Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode. (#145)
* Fix critical bugs in session opening for TCP and UDP in case of Singleplex mode.

- In case of TCP, don't open the session in the listener accept thread. This
  causes resource exhaustion of the tcp listener backlog queue in case of internet
  connection disruption or timeout.

- In case of UDP, don't create a new session for every UDP packet.

* Fix race in integration test.

* Fix race condition in session maker

* Code style improvements

* Explicit session.Close() call is indeed needed

Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
3 years ago
Andy Wang d5a003d6d6
Remove StreamTimeout from server completely 4 years ago
Andy Wang 0f6e0d37b5 Rename constants to camel case 4 years ago
Andy Wang c564114f76 Allow retries in time sensitive tests 4 years ago
Andy Wang a3cd5a4029 Make tests wait longer between closing something and testing if the other end has closed 4 years ago
Andy Wang a59d9cb880 Fix singleplex and add tests 4 years ago
Andy Wang a86899f007 Improve comments 4 years ago
Andy Wang d2131799fc Remove unnecessary table testing 4 years ago
Andy Wang 3f3259d4d3 MakeSession no longer needs to know if the Session should be admin 4 years ago
Andy Wang f96925982f Rename SplitConfigs to ProcessRawConfig to better reflect its behaviour 4 years ago
Andy Wang f00ef43613 Fix time-dependant tests 4 years ago
Andy Wang 9887649b88 Refactor Singleplexing 4 years ago
notsure2 dab137dbd7 Support session per connection mode (like GoQuiet) when NumConn = 0. 4 years ago
Andy Wang 369f3c781c Fix UDP 4 years ago
Andy Wang 2682460d46 Give time dependent tests more leeway 4 years ago
Andy Wang 360f84c5d5 Improve tests 4 years ago
Andy Wang 53c0c6bafe Explicitly allow buf overlap in obfs 4 years ago
Andy Wang 97eb6aa096 Correct usages of b.SetBytes 4 years ago
Andy Wang 852f5f5e9f Alter integration tests 4 years ago
Andy Wang 8a76afabf7 Reduce the amount of goroutines in tests 4 years ago
Andy Wang 5d4e8b8d8d Refactor udp piping and add tests 4 years ago
Andy Wang 9f413ff23a Fix multiconn benchmark 4 years ago
Andy Wang 17d57d9369 Add benchmarks 4 years ago
Andy Wang 2bf7df0eb0 Integration tests 4 years ago
Andy Wang 93cf6dec6e Export fields for testing 4 years ago