babarosaM33
81bbd98d8b
udprelay: exclude udp remote_recv_sendto buff full
before:
udp send buff full would not reset timeout trigger
after:
fix it
4 years ago
babarosaM33
a5111fe32f
updrelay: cleanup
4 years ago
babarosaM33
a5005664a7
ppbloom: save free() and subsequent init() overhead
init utilizes calloc which malloc and memset.
need cherry-pick commit of libbloom
4 years ago
babarosaM33
88c4d2aaab
crypto: lower bloom filter error rate
before patch:
full bloom filter error rate before reset 1-(1-1e-6)^5e5=1-0.606=0.394
after patch:
1-(1-1e-10)^5e5=1-0.99995=5e-5
4 years ago
babarosaM33
30d5b85fe7
Revert "ppbloom:remove unnecessay bloom_check"
ppbloom_add only checks current bloom filter not both PING PONG filters
This reverts commit 9ae59819be
.
4 years ago
kuangniu
0f87d7cb68
Fix sockopt level.
4 years ago
Max Lv
4214894f5d
Fix a typo
4 years ago
Max Lv
4f577a0d31
Fix #2600
4 years ago
Max Lv
d31fba3deb
Fix #2599
4 years ago
babarosaM33
8c03d25314
udprelay: fix more tos
4 years ago
babarosaM33
247d53098c
server: replace memmove with idx
4 years ago
babarosaM33
4d617adfb0
refine tos setsockopt in redir and udprelay
make tos setup working at ipv4 and ipv6
4 years ago
babarosaM33
b48dcddc6c
server: fix setTosFromConnmark typo
Server made a connection to remote, remote replied with that connection.
nf_conntrack module would not check reply-dst and reply-src by default.
more information please refer to https://www.spinics.net/lists/netfilter/msg57842.html
As a result, src and dst should be swapped to make nf_conntrack find the connection.
4 years ago
babarosaM33
3908f3ac85
crypto: md5 hash works without hmac mode
setup mbedtls_md_context_t with hmac disabled to save some memory.
4 years ago
babarosaM33
9576dcea54
initialize after pass check
if check failes, no need to initialize crypto.
4 years ago
babarosaM33
9ae59819be
ppbloom:remove unnecessay bloom_check
bbloom_add and bbloom_check are in fact the same function.
let's make bbloom_add return collision information.
4 years ago
Mygod
80b887d16e
Warn users when using stream ciphers
4 years ago
babarosaM33
7fe555c756
Remove unnecessary memmove
Before patch, after one chunk decoded, we do a memmove.
After patch, after all complete chunk decoded, we do a memmove.
4 years ago
Roger Shimizu
a7d57ab9d5
Fix of PATH_MAX for GNU/Hurd
PATH_MAX is not defined on each platform, and should be avoided.
Info:
- https://www.gnu.org/software/hurd/community/gsoc/project_ideas/maxpath.html
- https://www.gnu.org/software/hurd/hurd/porting/guidelines.html#PATH_MAX_tt_MAX_PATH_tt_MAXPATHL
5 years ago
igor
0b737a9525
Fix redir default cipher
5 years ago
eric
16bd9af3a4
Fix QoS
5 years ago
Max Lv
6d73201b9a
Fix #2539
5 years ago
Max Lv
748e6f3824
Refine #2537
5 years ago
Max Lv
ce71f49af8
Fix #2537
5 years ago
Max Lv
1ba753adaa
Fix #2536
5 years ago
Max Lv
22d5e59972
Remove request timeout
5 years ago
Max Lv
29936626b2
Refine the timeout logic
5 years ago
Max Lv
5da991a88c
Refine the handling of fragment request
5 years ago
RJ Trujillo
7132ff1b7c
cache: Remove unused return from 'cache_key_exist'
If 'tmp' isn't accessed, 0 is returned by the function anyway. This
is a duplicate case therefore is not needed.
Signed-off-by: RJ Trujillo <certifiedblyndguy@gmail.com>
5 years ago
Max Lv
e911625696
Revert "Add echo for stat API"
This reverts commit 94dc47da9d
.
Fix #2477 .
5 years ago
Max Lv
9109b63aaa
Avoid confusion of the return value of aead_cipher_decrypt()
5 years ago
Max Lv
313b9a7086
Refine #2463 , set default min timeout to 24h
5 years ago
Max Lv
03fb8c9f74
Revert "Add option '--long-idle' for server"
This reverts commit b4cda9dd42
.
5 years ago
lixingcong
b4cda9dd42
Add option '--long-idle' for server
Restore the default behavior handling timeout, make an option to enable
long idle connections.
Previously discussion:
https://github.com/shadowsocks/shadowsocks-libev/pull/2421
https://github.com/shadowsocks/shadowsocks-libev/issues/2427
5 years ago
Max Lv
1c4ddd3724
Fix #2449
5 years ago
Max Lv
e3c6c80df0
Fix #2443
5 years ago
Max Lv
f5e8519d8f
Fix #2438
5 years ago
Max Lv
64b97cd9a3
Clean up
5 years ago
Max Lv
a5daf4d502
Fix #2427
5 years ago
Mygod
ebdf27975c
Allow long idle connections in server
5 years ago
Max Lv
9aa46cbc3f
Remove -Wcast-align
5 years ago
Max Lv
59417b9779
Revert "Specify the alignment of all structs"
This reverts commit d0285d6b4f
.
5 years ago
Max Lv
d0285d6b4f
Specify the alignment of all structs
5 years ago
Max Lv
f0205e7f13
Refine the helper function
5 years ago
Max Lv
ab9764dbdf
Fix building issues on Linux
5 years ago
Max Lv
6c28add775
Enable -Wcas-align for #2412
5 years ago
Max Lv
a161265786
Reduce the verbosity on plugin terminating error
5 years ago
Max Lv
37ca6830ad
Refine #2402
5 years ago
神楽坂ニャン
94dc47da9d
Add echo for stat API
5 years ago
WHR
63a991cc43
ss-local: improve verbose logging; print hit of missing option
5 years ago