不确定
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
Andy Wang
a59d9cb880
Fix singleplex and add tests
4 years ago
Andy Wang
a1bc148d50
Restore AddRecordLayer
4 years ago
Andy Wang
1f5e0c1d24
Add benchmark for TLSConn.Write
4 years ago
Andy Wang
86e2935607
Use a pre-made buffer for TLSConn.Write
4 years ago
Andy Wang
8b0a7425f8
Add tests for parsing shadowsocks binding addresses
4 years ago
Andy Wang
a86899f007
Improve comments
4 years ago
Andy Wang
afbc87162c
Extract address processing functions
4 years ago
Andy Wang
e092e280c1
Refactor dispatcher.go
4 years ago