Commit Graph

599 Commits (d1b05ee9e5fa051c4fc7a55f3c8f99d24a650b14)
 

Author SHA1 Message Date
Andy Wang d1b05ee9e5
Add new encryption method option aes-128-gcm 4 years ago
Andy Wang cbd71fae6d
Control flow optimisations 4 years ago
Andy Wang 3ad04aa7e9
Add latency benchmark 4 years ago
Andy Wang 2d08e88efb
Use a sync.Pool to remove the global random bottleneck in picking a random conn 4 years ago
Andy Wang 415523f10a
Refactor obfuscate and deobfuscate functions to reduce a layer of indirection 4 years ago
Andy Wang 2f17841f85
Use Compare-And-Swap for atomic booleans indicating session and switchboard closed 4 years ago
Andy Wang 4f34e69006
Use pooled buffer for session closing frame 4 years ago
Andy Wang 881f6e6f9d
Use sync.Pool for obfuscation buffer 4 years ago
Andy Wang 5933ad8781
Replace bytes.Buffer with vanilla []byte in tls wrapper 4 years ago
Andy Wang 4209483a48
Reduce memory pressure in tests 4 years ago
Andy Wang 3b24c33e78
Remove incorrect concurrent uses of testing.T.Fatal 4 years ago
Andy Wang 70a9723377
Temp fix to testing reading after closing a stream 4 years ago
Andy Wang a97f5759c0
Fix race condition in tests 4 years ago
Andy Wang 0209bcd977
Fix race condition in steam closing. Fall back to temp buffer allocation 4 years ago
Andy Wang 53f0116c1d
Fix race condition in the use of assert.Eventually 4 years ago
Andy Wang 9108794362
Fix race condition in allocating obfsBuf 4 years ago
Andy Wang 5c5e9f8c14
Prevent unnecessary allocation in stream closing 4 years ago
Andy Wang 3e737717bd
Use assert.Eventually to correctly handle more timing sensitive tests 4 years ago
不确定 dc030fbb47
Implement UDP stream timeout. (#148)
* Implement UDP stream timeout.

* Correctly delete streams from map after closing

Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
4 years ago
Andy Wang 4d1612774f
Use a buffer pool to reduce contentions in tls wrapper 4 years ago
Andy Wang 35f41424c9
Use default hashmap to store streams. Avoid allocating a stream object on receiving every single frame 4 years ago
Andy Wang fd5005db0a
Fix a timing sensitive test on reading data after actively closing a stream 4 years ago
Andy Wang ff503b06a8
Only allocate and copy frame object into sorter heap when necessary (out of order frame) 4 years ago
Andy Wang 5a3f63f101
Reduce allocation of frame objects on receiving data 4 years ago
Andy Wang 104117cafb
Fix one instance of not accessing recvBuf via the getter 4 years ago
Andy Wang 4bc80af9a1
Lazily allocate stream receiving buffer 4 years ago
Andy Wang badda76454
Improve data receive benchmark 4 years ago
Andy Wang 42f36b94d3
Achieve zero allocation when writing data through stream 4 years ago
Andy Wang 3633c9a03c
Fix multiplex test as test payload length may be randomised to 0 4 years ago
Andy Wang c9ac93b0b9
Refactor session_test.go 4 years ago
Andy Wang de0daac123
Update deprecated curve25519 functions and defend against low-order point attacks 4 years ago
Andy Wang 0d3f8dd27f
Allow DatabasePath to be empty if user info database is never used 4 years ago
Andy Wang 298e6249e6
Fixup build scripts 4 years ago
Andy Wang 0473d71bea
Fix overflow in padding length calculation 4 years ago
Andy Wang 1e41aabe7d
Alter glob in release action 4 years ago
Andy Wang c293cd3789
Migrate off azure 4 years ago
Andy Wang fa4ec77d71
Remove Travis CI badge 4 years ago
Andy Wang 4a37449d33
Replace all time-sensitive tests with assert.Eventually 4 years ago
Andy Wang 8d146582d2
Add release action 4 years ago
Andy Wang 005da456c0
Fix timing sensitive tests 4 years ago
Andy Wang 275540a793
Fix commandline syntax 4 years ago
Andy Wang 3728622f48
Add github actions 4 years ago
Andy Wang 2e36627a12
Make AdminUID optional and implement better validation on empty config fields 4 years ago
Andy Wang 21bcb53062
Human friendly key and uid generators 4 years ago
Andy Wang a803d20970
Remove sensitive keys from example configs to prevent people from using them 4 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>
4 years ago
Andy Wang 7b6a82b364
Remove StreamTimeout from ckserver's example config 4 years ago
Andy Wang c3ee9f2127
Merge branch 'master' of github.com:cbeuw/Cloak 4 years ago
不确定 a72273096a
Add CdnHttpHost config setting with documentation. (#143)
* Add CdnHttpHost config setting with documentation.

* Rename CdnHttpHost to CDNOriginHost and make README more concise

Co-authored-by: Andy Wang <cbeuw.andy@gmail.com>
4 years ago
Andy Wang d5a003d6d6
Remove StreamTimeout from server completely 4 years ago