Commit Graph

673 Commits (master)
 

Author SHA1 Message Date
Andy Wang badda76454
Improve data receive benchmark 3 years ago
Andy Wang 42f36b94d3
Achieve zero allocation when writing data through stream 3 years ago
Andy Wang 3633c9a03c
Fix multiplex test as test payload length may be randomised to 0 3 years ago
Andy Wang c9ac93b0b9
Refactor session_test.go 3 years ago
Andy Wang de0daac123
Update deprecated curve25519 functions and defend against low-order point attacks 3 years ago
Andy Wang 0d3f8dd27f
Allow DatabasePath to be empty if user info database is never used 3 years ago
Andy Wang 298e6249e6
Fixup build scripts 3 years ago
Andy Wang 0473d71bea
Fix overflow in padding length calculation 3 years ago
Andy Wang 1e41aabe7d
Alter glob in release action 3 years ago
Andy Wang c293cd3789
Migrate off azure 3 years ago
Andy Wang fa4ec77d71
Remove Travis CI badge 3 years ago
Andy Wang 4a37449d33
Replace all time-sensitive tests with assert.Eventually 3 years ago
Andy Wang 8d146582d2
Add release action 3 years ago
Andy Wang 005da456c0
Fix timing sensitive tests 3 years ago
Andy Wang 275540a793
Fix commandline syntax 3 years ago
Andy Wang 3728622f48
Add github actions 3 years ago
Andy Wang 2e36627a12
Make AdminUID optional and implement better validation on empty config fields 3 years ago
Andy Wang 21bcb53062
Human friendly key and uid generators 3 years ago
Andy Wang a803d20970
Remove sensitive keys from example configs to prevent people from using them 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 7b6a82b364
Remove StreamTimeout from ckserver's example config 3 years ago
Andy Wang c3ee9f2127
Merge branch 'master' of github.com:cbeuw/Cloak 3 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>
3 years ago
Andy Wang d5a003d6d6
Remove StreamTimeout from server completely 3 years ago
不确定 e77fd4c446
Fix regression: termination of long downloads after StreamTimeout seconds (#141)
* Fix termination of long downloads after StreamTimeout seconds.

- Even if not broadcasting in a loop, we still need to update the read deadline.
- Don't enforce the timeout after the first data is written.

* When timeout no longer needs to be enforced, no need to schedule a broadcast.

* Fix Cloak client. Don't enforce read deadline after first read.

* Enforce StreamTimeout on the initial bytes sent by localConn only.

* Revert changes to multiplex module. Remove timeout from caller.
3 years ago
Andy Wang 57138e84e5
Merge branch 'master' of github.com:cbeuw/Cloak 3 years ago
notsure2 caca33a1a5 Respect user choice of ProxyMethod in shadowsocks plugin mode. 3 years ago
Andy Wang 061b10e802
Improve tests code quality 3 years ago
Andy Wang 61b1031da6
Reduce code duplication in session closing 3 years ago
Andy Wang 46f4235ccb
Update readme 3 years ago
Andy Wang 0482d28f86
Merge pull request #138 from notsure2/explicit-stop-timer
Optimise calls to time.AfterFunc in buffered pipe implemenations to reduce memory usage
3 years ago
Andy Wang 0327d0ffb3
Further reduce the amount of calls to AfterFunc 3 years ago
notsure2 208a7f249f Fix memory leaking by extra timers. 3 years ago
Andy Wang c0040f20c3
Use time.AfterFunc for session inactivity timeout to reduce goroutine count 3 years ago
Andy Wang a3520c1018
Revert "Prevent time.Timer memory leak by using a singleton timer in bufferedPipes. Fix #137"
This reverts commit 4baca256
3 years ago
Andy Wang 4baca256f7
Prevent time.Timer memory leak by using a singleton timer in bufferedPipes. Fix #137 3 years ago
Andy Wang 39c06a6e1d
Update comment 3 years ago
Andy Wang ebce40ce2d
Update README 3 years ago
Andy Wang 347bb0fad5
Tweak CI 4 years ago
Andy Wang f1c656758f
Update azure release script 4 years ago
Andy Wang f19666a6cd
#135 Disable CGO to prevent Go from dynamically linking libc on native compilation 4 years ago
Andy Wang 095471103a
Fix timestamp tests 4 years ago
不确定 b7e7bfb314
Make sure times are UTC and correctly subtract the timestamp window from the server time. (#134) 4 years ago
Andy Wang 0f6e0d37b5 Rename constants to camel case 4 years ago
Andy Wang 11cfeb4fa3 Improve comments 4 years ago
Andy Wang 735975ef88 Fix typo and remove redundant benchmark 4 years ago
Andy Wang 651854904f Improve comments 4 years ago
Andy Wang 977f51ce48 Add comments 4 years ago
Andy Wang 5af55d62d8 Update README.md 4 years ago
Andy Wang c564114f76 Allow retries in time sensitive tests 4 years ago