Commit Graph

557 Commits (2e36627a121676504fb1633957358685e65899d4)
 

Author SHA1 Message Date
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
不确定 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.
4 years ago
Andy Wang 57138e84e5
Merge branch 'master' of github.com:cbeuw/Cloak 4 years ago
notsure2 caca33a1a5 Respect user choice of ProxyMethod in shadowsocks plugin mode. 4 years ago
Andy Wang 061b10e802
Improve tests code quality 4 years ago
Andy Wang 61b1031da6
Reduce code duplication in session closing 4 years ago
Andy Wang 46f4235ccb
Update readme 4 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
4 years ago
Andy Wang 0327d0ffb3
Further reduce the amount of calls to AfterFunc 4 years ago
notsure2 208a7f249f Fix memory leaking by extra timers. 4 years ago
Andy Wang c0040f20c3
Use time.AfterFunc for session inactivity timeout to reduce goroutine count 4 years ago
Andy Wang a3520c1018
Revert "Prevent time.Timer memory leak by using a singleton timer in bufferedPipes. Fix #137"
This reverts commit 4baca256
4 years ago
Andy Wang 4baca256f7
Prevent time.Timer memory leak by using a singleton timer in bufferedPipes. Fix #137 4 years ago
Andy Wang 39c06a6e1d
Update comment 4 years ago
Andy Wang ebce40ce2d
Update README 4 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
Andy Wang ef040b0115 Fix stream closing tests 4 years ago
Andy Wang 54bca721e8 Add tests for API handlers 4 years ago
Andy Wang c5276df32e Check payload AEAD's size in relation to frame header's size 4 years ago
Andy Wang e141323c9d Fix obfsBuf being too small on closing frame 4 years ago
Andy Wang 1ec11c175a POST to /admin/users/{UID} will POST json string directly, rather than being encoded in FormData 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 f8f02bfc43 Parameterise session inactivity timeout 4 years ago
Andy Wang 0fc27d747e Reduce unnecessary allocation size on stream closing 4 years ago
Andy Wang 64d857c74d Rename variables for clarity 4 years ago
Andy Wang acdb0d35fa Reduce recvBuffer's implementation's buffer size limits 4 years ago
Andy Wang c7c3f7706d Refactor for clarity and add comments 4 years ago
Andy Wang d706e8f087 Remove redundant code 4 years ago
Andy Wang f111ab29ab Fix RandRead retry timer 4 years ago
Andy Wang 0968285664 Improve test coverage 4 years ago
Andy Wang c1b261c652 Add stream tests 4 years ago
Andy Wang c749b107e2 Improve test coverage for client's ParseConfig 4 years ago