Andy Wang
3b24c33e78
Remove incorrect concurrent uses of testing.T.Fatal
2020-12-23 23:12:51 +00:00
Andy Wang
a97f5759c0
Fix race condition in tests
2020-12-23 22:34:12 +00:00
Andy Wang
0d3f8dd27f
Allow DatabasePath to be empty if user info database is never used
2020-12-21 15:06:46 +00:00
Andy Wang
4a37449d33
Replace all time-sensitive tests with assert.Eventually
2020-12-19 20:14:43 +00:00
不确定
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>
2020-12-19 14:42:10 +00:00
Andy Wang
d5a003d6d6
Remove StreamTimeout from server completely
2020-12-12 17:51:54 +00:00
Andy Wang
0f6e0d37b5
Rename constants to camel case
2020-10-21 16:42:24 +01:00
Andy Wang
c564114f76
Allow retries in time sensitive tests
2020-10-18 23:06:49 +01:00
Andy Wang
a3cd5a4029
Make tests wait longer between closing something and testing if the other end has closed
2020-10-18 15:52:36 +01:00
Andy Wang
a59d9cb880
Fix singleplex and add tests
2020-10-17 16:15:55 +01:00
Andy Wang
a86899f007
Improve comments
2020-10-17 12:24:23 +01:00
Andy Wang
d2131799fc
Remove unnecessary table testing
2020-10-16 00:09:00 +01:00
Andy Wang
3f3259d4d3
MakeSession no longer needs to know if the Session should be admin
2020-10-15 23:02:51 +01:00
Andy Wang
f96925982f
Rename SplitConfigs to ProcessRawConfig to better reflect its behaviour
2020-10-15 22:51:59 +01:00
Andy Wang
f00ef43613
Fix time-dependant tests
2020-10-15 22:13:33 +01:00
Andy Wang
9887649b88
Refactor Singleplexing
2020-10-15 21:32:38 +01:00
notsure2
dab137dbd7
Support session per connection mode (like GoQuiet) when NumConn = 0.
2020-07-06 23:18:52 +02:00
Andy Wang
369f3c781c
Fix UDP
2020-05-23 15:44:24 +01:00
Andy Wang
2682460d46
Give time dependent tests more leeway
2020-04-24 01:19:30 +01:00
Andy Wang
360f84c5d5
Improve tests
2020-04-14 14:14:51 +01:00
Andy Wang
53c0c6bafe
Explicitly allow buf overlap in obfs
2020-04-13 22:48:28 +01:00
Andy Wang
97eb6aa096
Correct usages of b.SetBytes
2020-04-13 19:40:23 +01:00
Andy Wang
852f5f5e9f
Alter integration tests
2020-04-13 15:17:59 +01:00
Andy Wang
8a76afabf7
Reduce the amount of goroutines in tests
2020-04-11 23:09:51 +01:00
Andy Wang
5d4e8b8d8d
Refactor udp piping and add tests
2020-04-11 22:37:15 +01:00
Andy Wang
9f413ff23a
Fix multiconn benchmark
2020-04-11 19:03:44 +01:00
Andy Wang
17d57d9369
Add benchmarks
2020-04-10 18:48:01 +01:00
Andy Wang
2bf7df0eb0
Integration tests
2020-04-10 15:05:15 +01:00
Andy Wang
93cf6dec6e
Export fields for testing
2020-04-10 14:09:48 +01:00