1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 10:08:15 -05:00
Commit Graph

507 Commits

Author SHA1 Message Date
v2ray
b50671f041
fix a bug in process ack 2016-07-12 13:43:25 +02:00
v2ray
63390786ed
test case for read timeout 2016-07-12 13:27:12 +02:00
v2ray
a88a120938
Fix deadlock in kcp.read 2016-07-12 12:54:09 +02:00
v2ray
12d13f1560
refine log in KCP 2016-07-11 17:24:35 +02:00
v2ray
636effbe38
more accurate source id 2016-07-10 15:58:55 +02:00
v2ray
5e7d413404
allow insecure connections 2016-07-10 15:30:48 +02:00
v2ray
be81d246f2
rename json fields 2016-07-10 15:29:03 +02:00
v2ray
754e8b6e78
tls config 2016-07-10 15:27:58 +02:00
v2ray
1e3ebeef59
reduce buffer size 2016-07-06 17:58:15 +02:00
v2ray
56ce062154
refine connection.read 2016-07-06 17:34:38 +02:00
v2ray
a615afc906
refine locks in sending worker 2016-07-06 16:36:15 +02:00
v2ray
5448ec1fe4
refine locker in sending worker 2016-07-06 00:02:22 +02:00
v2ray
78ef65e17b
refine locker in kcp connection 2016-07-05 23:53:46 +02:00
v2ray
e44b374e66
merge kcp into connection 2016-07-05 23:02:52 +02:00
v2ray
344e48e1bb
completely remove itimediff 2016-07-05 21:47:35 +02:00
v2ray
16d1b42f59
refine seg allocation 2016-07-05 14:08:08 +02:00
v2ray
6efff7654c
leverage pool functions 2016-07-05 11:36:05 +02:00
v2ray
34fb72e7c6
refine ack seg put 2016-07-05 10:33:11 +02:00
v2ray
13e83c17a5
apply sync.Pool to segments 2016-07-05 10:28:23 +02:00
v2ray
e170750d7e
fix test 2016-07-04 17:01:32 +02:00
v2ray
6ea8691a07
correctly apply cwnd 2016-07-04 15:54:18 +02:00
v2ray
d1d153acb9
refine congestion control 2016-07-04 15:34:14 +02:00
v2ray
8ea3c13236
rename ISegment -> Segment 2016-07-04 14:17:42 +02:00
v2ray
03ff683686
rename process ack segment 2016-07-04 14:17:11 +02:00
v2ray
165e323fab
refine sending window size 2016-07-04 13:37:42 +02:00
v2ray
6a1054a0f3
allow capacity = 0 2016-07-04 13:31:21 +02:00
v2ray
9c3ebc0453
allow control window larger than sending window 2016-07-03 23:16:48 +02:00
v2ray
968fffcffb
fix test break 2016-07-03 22:33:08 +02:00
v2ray
e4acfe7f7e
sending worker 2016-07-03 22:14:38 +02:00
v2ray
0eaa3ba27a
refactor code 2016-07-03 09:38:51 +02:00
v2ray
f8a614714c
sending window fix 2016-07-03 09:38:40 +02:00
v2ray
ab2cef1c09
shrink_buf 2016-07-03 00:57:28 +02:00
v2ray
84889117e9
simplify logic 2016-07-03 00:38:33 +02:00
v2ray
e5c4fd3e1c
remove unused variables 2016-07-03 00:27:01 +02:00
v2ray
490f77b4a0
cleanup 2016-07-03 00:00:43 +02:00
v2ray
7bc6d8af88
remove nodelay function 2016-07-02 23:59:43 +02:00
v2ray
951b278ac7
test case for receiving queue 2016-07-02 23:37:51 +02:00
v2ray
6416c42bee
rename NewAckList 2016-07-02 23:18:12 +02:00
v2ray
a1af9ea839
refine locks 2016-07-02 22:28:28 +02:00
v2ray
3ad83da7cb
rename acksegment 2016-07-02 22:17:41 +02:00
v2ray
32da784549
remove deadlock 2016-07-02 22:06:37 +02:00
v2ray
080f0abee9
receiving worker 2016-07-02 21:26:50 +02:00
v2ray
3e84e4cb44
rename acklist 2016-07-02 11:33:34 +02:00
v2ray
e1ce179b8e
remove unnecessary constants 2016-07-02 11:31:15 +02:00
v2ray
94fb16fdfa
refine kcp constructor 2016-07-02 11:19:32 +02:00
v2ray
a2abdc3d2f
refine mtu settings 2016-07-02 08:45:31 +02:00
v2ray
8e98ede75d
shrink buf in time 2016-07-01 23:27:57 +02:00
v2ray
2169dcd7da
fix a bug in length calculation 2016-07-01 22:54:59 +02:00
v2ray
829355e6bf
correctly calculate len of sending window 2016-07-01 15:54:04 +02:00
v2ray
dc53575540
bug fixes in sending window 2016-07-01 12:12:32 +02:00
v2ray
4c74e25319
sending window 2016-07-01 11:57:13 +02:00
v2ray
48d4f5b7bb
remove acklist test for the moment 2016-07-01 11:57:06 +02:00
v2ray
aa46e4ea05
extend ack timeout 2016-06-30 22:19:57 +02:00
v2ray
d63330d15e
refine ack list flushing 2016-06-30 22:19:30 +02:00
v2ray
5680c69146
locker protected ReceivingQueue.Put 2016-06-30 16:58:38 +02:00
v2ray
a1f5839461
receiving queue 2016-06-30 14:51:49 +02:00
v2ray
a6649fa0ff
remove unused variables 2016-06-30 11:35:35 +02:00
v2ray
9d83fbcb7c
fix cwnd 2016-06-30 11:19:35 +02:00
v2ray
7056b414e2
length protection in ReadSegment 2016-06-30 00:12:36 +02:00
v2ray
f050113925
fix #185 2016-06-30 00:08:20 +02:00
v2ray
98cc28a4c4
leverage dice.Roll 2016-06-29 23:53:50 +02:00
v2ray
71c9bd678c
Fix receiving update 2016-06-29 23:41:04 +02:00
v2ray
313b3c1db0
shrink buf for all type of segments 2016-06-29 22:49:38 +02:00
v2ray
812ac54290
congestion control 2016-06-29 22:30:38 +02:00
v2ray
af5a2ac0bc
allow small capacity 2016-06-29 16:46:26 +02:00
v2ray
6e615c5863
correctly measure payload time 2016-06-29 14:49:49 +02:00
v2ray
c5170a36f0
agreesively close unresponding connections 2016-06-29 13:42:11 +02:00
v2ray
0047910a81
bug fixes 2016-06-29 12:52:23 +02:00
v2ray
d958b9884e
apply new classes to kcp core 2016-06-29 10:34:34 +02:00
v2ray
aa6726a6d0
segment.releasable 2016-06-27 22:54:59 +02:00
v2ray
41b230994e
segment writer 2016-06-27 22:52:48 +02:00
v2ray
beea2528ce
ack list 2016-06-27 22:34:46 +02:00
v2ray
6915095a0a
typed segments 2016-06-27 22:22:01 +02:00
v2ray
27b8715b63
refine rto settings 2016-06-27 17:05:01 +02:00
v2ray
32d9984e28
completely remove wnd probe 2016-06-27 12:16:36 +02:00
v2ray
5a5c9b891d
correct window calculation 2016-06-27 11:18:14 +02:00
v2ray
2e63b29191
correct srtt boundary 2016-06-27 09:14:30 +02:00
v2ray
231f5fc140
update RecivingWindow.Remove 2016-06-27 09:03:05 +02:00
v2ray
7f661f5215
rename Error to Err 2016-06-27 08:53:35 +02:00
v2ray
5ee87404fd
remove unused variable 2016-06-27 08:47:47 +02:00
v2ray
e9fdc35c3c
fix kcp dial log 2016-06-27 08:38:02 +02:00
v2ray
cf6d36ecd5
remove unnecessary flush 2016-06-27 00:04:28 +02:00
v2ray
3925b62751
high performance sending queue 2016-06-26 23:51:17 +02:00
v2ray
67ac925ee7
refactor bytes functions 2016-06-26 22:34:48 +02:00
v2ray
d12d5b0593
fix data structure 2016-06-25 23:28:22 +02:00
v2ray
d37c01905c
remove unnecessary conversion 2016-06-25 23:18:05 +02:00
v2ray
0812d7f9be
change writeBuffer to uint32 2016-06-25 23:17:04 +02:00
v2ray
5b70c33c77
remove tti check 2016-06-25 23:08:02 +02:00
v2ray
882746380e
Correct RTT Variation 2016-06-25 22:10:17 +02:00
v2ray
25ef62434a
high performance receiving window 2016-06-25 21:35:18 +02:00
v2ray
87e1d66ff0
remove segment.rto 2016-06-25 17:34:07 +02:00
v2ray
15f190d268
remove nodelay settings 2016-06-25 17:32:09 +02:00
v2ray
0613d0cf22
Clear sending queue when peer closed 2016-06-23 23:17:17 +02:00
v2ray
ab710f2714
write buffer size 2016-06-23 22:37:48 +02:00
v2ray
4beeba933c
refine rto and wnd, temporarily disable congestion control 2016-06-23 22:37:38 +02:00
v2ray
576b16c2f7
remove unused variable 2016-06-23 16:06:18 +02:00
v2ray
db3ca752ff
remove unused methods 2016-06-22 21:03:15 +02:00
V2Ray Dev
41225f8c12
correctly set tti 2016-06-20 22:27:25 +02:00
v2ray
1238304b1d
more settings to kcp 2016-06-20 16:10:47 +02:00
V2Ray Dev
b131f64f7b
remove acknodealy setting entry 2016-06-20 11:06:27 +02:00
v2ray
aa38488712 clean up sessions 2016-06-18 21:18:21 +02:00
v2ray
8cd32a8267 avoid copying segment structure 2016-06-18 19:08:02 +02:00
v2ray
ee0c25b0f3 reuse alloc.buffer in kcp 2016-06-18 18:53:29 +02:00
v2ray
7bf74761df remove unused code in kcp 2016-06-18 17:30:31 +02:00
v2ray
a0d08e4961 check mtu setting 2016-06-18 17:14:39 +02:00
v2ray
bac9304e05 better termination logic 2016-06-18 16:52:02 +02:00
v2ray
5334d25e16 normalize naming 2016-06-18 16:34:04 +02:00
v2ray
cd4416e7e5 another test case for simple authenticator 2016-06-18 10:58:21 +02:00
v2ray
b5ab714b52 fix duplicated asm function 2016-06-18 10:47:15 +02:00
v2ray
f54da94d03 update asm code 2016-06-18 02:19:18 +02:00
v2ray
f7396aad8c improve simple authenticator performance in amd64 2016-06-18 02:13:35 +02:00
v2ray
2b966b039f check for nil 2016-06-17 23:50:08 +02:00
v2ray
7a84c930d4 fix KCP 2016-06-17 23:09:26 +02:00
v2ray
87cb0d5dc9 update log 2016-06-17 18:03:31 +02:00
v2ray
233b73d1db improve kcp performance 2016-06-17 17:38:42 +02:00
v2ray
f5d613f10a update kcp config 2016-06-17 16:57:48 +02:00
v2ray
42ae2d804f Integrate kcp with other components 2016-06-17 16:51:41 +02:00
v2ray
103c721626 adjust connection type priority 2016-06-15 01:08:03 +02:00
v2ray
9d21c78a01 remove ibound function 2016-06-15 01:06:02 +02:00
v2ray
b8160bbdae merge dial and listen functions 2016-06-15 00:30:11 +02:00
v2ray
c4536d99d4 test case for raw connection 2016-06-15 00:10:52 +02:00
v2ray
99516bc511 customizable kcp code 2016-06-14 23:25:06 +02:00
v2ray
9b6dc6bcea massive refactoring for kcp 2016-06-14 22:54:08 +02:00
Shelikhoo
de4b4516ee
Fix: check jsonConfig.KcpConfig 2016-06-13 17:49:21 +08:00
Shelikhoo
bcf87d1592
KCP: style 2016-06-13 16:34:35 +08:00
Shelikhoo
14623e6fa4
KCP: This code cause unwanted effect 2016-06-13 16:01:27 +08:00
Shelikhoo
18841209ee
KCP:Some Tests 2016-06-13 15:57:49 +08:00
Shelikhoo
0f368f8139
KCP: comments 2016-06-13 15:03:58 +08:00
Shelikhoo
29e9473026
KCP: delay conn close to prevent conn leak+ 2016-06-13 12:56:37 +08:00
Shelikhoo
9144b66217
KCP: delay conn close to prevent conn leak 2016-06-13 07:08:40 +08:00
Shelikhoo
4df5d42011
KCP: discard useless conn in Accept+ 2016-06-13 06:17:28 +08:00
Shelikhoo
f601962391
KCP: discard useless conn in Accept 2016-06-13 06:16:44 +08:00
Shelikhoo
f4ff2e9366
Removed manadory mandatory requirement for Read/Write Timeout+ 2016-06-12 22:39:38 +08:00
Shelikhoo
d0d63ee5b3
Removed manadory mandatory requirement for Read/Write Timeout 2016-06-12 22:37:50 +08:00
Shelikhoo
9315bb29fb
Fix: Dial3 misbehave 2016-06-12 15:21:59 +08:00
Shelikhoo
579786166c
Fix: DialWithoutCache3 misbehave 2016-06-12 15:15:47 +08:00
Shelikhoo
7fdf0de06d
KCP: Fixed: typo in <Fixed transport/config_json.go jsonConfig.KcpConfig, jsonConfig.KcpConfig.AdvancedConfig == nil> 2016-06-12 14:12:48 +08:00
Shelikhoo
cbb183ec58
KCP: Fixed transport/config_json.go jsonConfig.KcpConfig, jsonConfig.KcpConfig.AdvancedConfig == nil 2016-06-12 14:10:19 +08:00
Shelikhoo
0912574166
KCP: amend proxyMeta -> *proxymeta 2016-06-12 13:45:21 +08:00
Shelikhoo
4f9a9d1f0c
KCP: fix: meta type 2016-06-12 13:43:05 +08:00
Shelikhoo
c07d478ab5
KCP: Dialers for KCP 2016-06-12 13:38:14 +08:00
Shelikhoo
35b30e5bb0
Finished ListenKCPhub 2016-06-12 13:22:09 +08:00
Shelikhoo
70201d8879
KCP:func ListenKCP finished 2016-06-12 13:14:07 +08:00
Shelikhoo
a9ef8d27bd
Merged latest master 2016-06-12 12:58:20 +08:00
Shelikhoo
e51710d144
Func: ListenTCP6 2016-06-12 12:46:26 +08:00
Shelikhoo
2fd963801c
KCP: Added Dial func 2016-06-12 12:46:26 +08:00
Shelikhoo
e84d52263d
KCP: Moved apply to KCPv 2016-06-12 12:46:26 +08:00
Shelikhoo
0f28c577ce
KCP: Chiper generater 2016-06-12 12:46:26 +08:00
Shelikhoo
6f0b4aaf31
KCP: sorrgated Listener and conn 2016-06-12 12:46:26 +08:00
Shelikhoo
a8792b2b60
Added Config for KCP connetions 2016-06-12 12:46:26 +08:00
Shelikhoo
77eee3ed37
Added kcp json parser(By doing nothing) 2016-06-12 12:46:26 +08:00
Shelikhoo
12c40b7195
Renamed to kcpv avoid name conflict 2016-06-12 12:46:26 +08:00
Shelikhoo
63c1f2106d
Added kcp related configs 2016-06-12 12:46:26 +08:00
v2ray
1c06fc216a allow redirection in dokodemo 2016-06-12 01:30:56 +02:00
v2ray
ffce784dce comments 2016-06-11 13:29:33 +02:00
v2ray
b17edf907e enable connection reuse by default 2016-06-11 02:05:29 +02:00
v2ray
a4d76dc394 support using specific address 2016-06-04 00:38:22 +02:00
v2ray
f3975aafbf remove unnecessary log 2016-06-02 21:49:57 +02:00
v2ray
40ebd1e9ae remove unused definition 2016-06-02 21:48:43 +02:00
v2ray
ff0cb89efa simplify connection reuse settings 2016-06-02 20:52:52 +02:00
v2ray
9a8bc3fc3c async connection close 2016-06-02 02:40:46 +02:00
v2ray
dfe1ac1f2b Fix connection reuse 2016-06-02 02:20:53 +02:00
v2ray
a86cd36ad2 configuration for connection reuse 2016-06-02 01:49:25 +02:00
v2ray
0fac2084c7 reusable connection 2016-05-31 00:21:41 +02:00
v2ray
da24d00367 reusable connection 2016-05-29 22:33:04 +02:00
v2ray
b47c1ca609 get rid of annoying firewall warnings 2016-05-29 16:37:52 +02:00
v2ray
fc63f0432c simplify testing 2016-05-24 21:55:46 +02:00
v2ray
18d75cb7b4 bug fixes to dns server 2016-05-16 11:53:18 -07:00
v2ray
ac4d92a186 fix udp connection mapping 2016-05-13 19:35:59 -07:00
v2ray
634c4964cc Massive fixes 2016-05-12 17:20:07 -07:00
v2ray
8fbca309df better management on udp connections 2016-05-10 15:43:02 -07:00
v2ray
1bd893501c reduce time of waiting for channel empty 2016-05-09 08:23:46 -07:00
v2ray
9b511fb071 Fix a typo 2016-05-09 08:04:55 -07:00
v2ray
663b9c9bbc busy wait on writing 2016-05-08 19:04:51 -07:00
v2ray
7d43952690 tcphub now takes tls config as construtor parameter 2016-05-03 00:16:07 +02:00
v2ray
f594f5b606 simplify tcp connection 2016-05-02 23:53:16 +02:00
v2ray
18069d377c Release stream when conn ends 2016-05-02 14:03:58 +02:00
v2ray
ccb874d65a tls connection 2016-04-28 21:13:41 +02:00
v2ray
94eab286c0 introduct Connection interface 2016-04-27 23:01:31 +02:00
v2ray
42907ff2e8 Remove v2net.Packet 2016-04-26 00:13:26 +02:00
v2ray
8c2b18cac4 fix again the race condition issue 2016-04-19 14:51:52 +02:00
v2ray
1732d33ba9 fix race condition in stream writing 2016-04-19 10:30:42 +02:00
v2ray
7407c8d561 use stream instead of raw chan 2016-04-18 18:44:10 +02:00
v2ray
ff69ac7a0e Release all references 2016-03-11 23:51:58 +01:00
v2ray
6f7fff8173 release all references in tcp hub after it is closed 2016-03-09 11:34:27 +01:00
v2ray
dcd96df058 use NetAddr() as hash 2016-02-18 21:45:33 +01:00
v2ray
00fd6861a6 use golang's default dual stack algo when dialling to a domain 2016-02-18 12:28:45 +01:00
v2ray
175d56a10b don't log warning when not accepting anymore. 2016-02-18 11:36:21 +01:00
v2ray
25dfa66822 typos 2016-02-05 22:04:43 +01:00
Darien Raymond
b54a265373 increase buffer size in ray 2016-02-03 14:12:46 +00:00
Darien Raymond
0d77139c24 fix udp issue in socks proxy 2016-02-01 15:36:33 +00:00
v2ray
383eb57487 rename CorruptedPacket to ErrorCorruptedPacket 2016-01-30 17:20:30 +01:00
v2ray
1e79a3b75a rename errors 2016-01-30 12:32:38 +01:00
Darien Raymond
008c285324 move transport methods from net to io 2016-01-29 13:39:55 +00:00
v2ray
1f9bd5f692 rename TCPListener to TCPHub 2016-01-28 20:47:00 +01:00
Darien Raymond
4be27a6377 udp hub 2016-01-28 16:43:47 +00:00
Darien Raymond
925c06aeed rename transport/listener to hub 2016-01-28 16:08:32 +00:00
v2ray
8ae8b3c9f5 custom tcp listener and connection object 2016-01-27 22:11:31 +01:00
v2ray
37a9d8ef50 dice.Roll() 2016-01-21 22:45:44 +01:00
Darien Raymond
e346f179d2 update my own domain for testing 2016-01-21 12:27:08 +00:00
Darien Raymond
cf4d0146fb test case for domain dialing 2016-01-21 12:18:37 +00:00
v2ray
4a8ec6926b dialer 2015-12-17 01:19:04 +01:00
V2Ray
9a88e8696a format code 2015-11-27 21:57:15 +01:00
V2 Ray
9071b3ea10 more comments 2015-10-15 11:15:59 +00:00
V2Ray
a03eaa0316 Split directRay from ray.go 2015-10-14 15:07:13 +02:00
V2Ray
890d185979 Cleanup root directory 2015-10-14 14:51:19 +02:00
V2Ray
1d40220d31 Remove error defination 2015-10-13 13:55:06 +02:00