1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-27 12:36:34 -05:00
Commit Graph

429 Commits

Author SHA1 Message Date
Darien Raymond
50bc195f7f
rename TypedSettings to TypedMessage 2016-12-15 11:51:09 +01:00
Darien Raymond
eee23e6718
fix api usage 2016-12-11 21:43:16 +01:00
Darien Raymond
055023fdd5
refactor buffer 2016-12-09 12:08:25 +01:00
Darien Raymond
7a80409e30
rename alloc to buf 2016-12-09 11:35:27 +01:00
Darien Raymond
a3cb770f77
clean up errors 2016-12-09 00:11:05 +01:00
Darien Raymond
41fcffbfab
fix data input and output signal 2016-12-08 22:50:12 +01:00
Darien Raymond
40249dfacb
change API 2016-12-08 22:49:24 +01:00
Darien Raymond
41258f19fc
comments 2016-12-08 16:37:04 +01:00
Darien Raymond
1431e32d01
comments 2016-12-08 16:32:53 +01:00
Darien Raymond
0917866f38
refine kcp header and security 2016-12-08 16:27:41 +01:00
Darien Raymond
d716d02cd8
correctly handle sending window length 2016-12-07 00:31:01 +01:00
Darien Raymond
8c8f0a53fd
rewrite alloc.buffer 2016-12-06 11:03:42 +01:00
Darien Raymond
4bf8288cc2
remove use of Buffer.Value 2016-12-05 21:33:24 +01:00
Darien Raymond
efb24a4d21
rewrite error lib 2016-12-04 09:10:47 +01:00
Darien Raymond
a4019a6900
fast return on zero ack list 2016-12-02 21:40:58 +01:00
Darien Raymond
207c7aa8a7
flush acklist when dirty 2016-12-02 16:49:33 +01:00
Darien Raymond
1186b0e733
fix label name 2016-12-02 00:09:57 +01:00
Darien Raymond
eb877fa808
remove unnecessary import 2016-11-30 22:24:59 +01:00
Darien Raymond
3ffef74d75
allocate in advance 2016-11-30 22:24:06 +01:00
Darien Raymond
8b07c39281
update default kcp bandwidth settings 2016-11-30 21:36:40 +01:00
Darien Raymond
31fbb62d0f
add back flush timeout 2016-11-29 17:12:09 +01:00
Darien Raymond
3be9519ed4
send more ack seg 2016-11-29 08:31:19 +01:00
Darien Raymond
2dc74faf19
send more ack numbers if not full 2016-11-28 22:06:32 +01:00
Darien Raymond
5ffabe1148
reduce time spent on kcp test 2016-11-28 22:05:57 +01:00
Darien Raymond
f95c322677
rename 'this' 2016-11-27 21:39:09 +01:00
Darien Raymond
d00f8eef56
remove use of 'v' as a variable name 2016-11-27 17:01:44 +01:00
Darien Raymond
b1f78a1ffc
enable conn reuse settings in mkcp 2016-11-27 09:02:27 +01:00
Darien Raymond
d19ee4d408
connection reuse for mkcp 2016-11-27 08:58:31 +01:00
Darien Raymond
15cb543abb
release memory in kcp connection 2016-11-21 22:41:12 +01:00
Darien Raymond
70c75038a2
small buffer 2016-11-21 22:08:34 +01:00
Darien Raymond
d6086e0e9b
remove buggy test case 2016-11-19 22:54:42 +01:00
Darien Raymond
ac2f62b239
reduce memory footprint in kcp 2016-11-19 01:49:54 +01:00
Darien Raymond
ed780951aa
save some goroutines 2016-11-19 01:48:38 +01:00
Darien Raymond
a14795e1e6
optimize udp hub 2016-11-18 21:30:03 +01:00
Darien Raymond
4ee758c4d2
simplify kcp logic 2016-11-18 16:19:13 +01:00
Darien Raymond
e72f8a26c8
min timeout 2016-11-13 22:29:31 +01:00
Darien Raymond
0cd9f5165f
update kcp sending worker 2016-11-13 22:27:58 +01:00
Darien Raymond
7a09fcdc2f
increase kcp ack frequency 2016-11-08 00:35:14 +01:00
Darien Raymond
aabb9137e1
remove unused code 2016-11-01 12:34:07 +01:00
Darien Raymond
33d2513e3c
reduce memory allocation in kcp 2016-11-01 12:07:20 +01:00
Darien Raymond
5a311cbe08
json config parser 2016-10-17 14:35:13 +02:00
Darien Raymond
e33b7df34c
remove use of any 2016-10-16 14:22:21 +02:00
Darien Raymond
ab3173039b
increase ping interval 2016-10-11 21:21:06 +02:00
Darien Raymond
b5910dccae
simplify fast resend 2016-10-11 13:17:57 +02:00
Darien Raymond
f8ad1f4a3e
update predicate syntax 2016-10-11 12:44:17 +02:00
Darien Raymond
da9f1a8013
predicate.Not 2016-10-11 12:30:53 +02:00
Darien Raymond
f3a83c57ab
optimize ping and updater logic 2016-10-11 12:24:19 +02:00
Darien Raymond
78f87c4f60
test case for cmd only segment 2016-10-11 11:44:30 +02:00
Darien Raymond
e023859ef0
stop data updating thread when there is no data 2016-10-10 16:50:54 +02:00
Darien Raymond
1d13f47f9c
protobuf for stream settings 2016-10-02 23:43:58 +02:00
Darien Raymond
5ec948f690
integrate tls settings in ws 2016-09-30 16:53:40 +02:00
Darien Raymond
af6abfa3e3
update proto generated code 2016-09-26 15:14:39 +02:00
Darien Raymond
91f2a40dae
refine proto package names 2016-09-26 15:14:16 +02:00
Darien Raymond
dc6b7e2e75
protobuf for blackhole config 2016-09-22 12:01:36 +02:00
Darien Raymond
b28d718b79
optional field in kcp config 2016-09-21 21:08:05 +02:00
Darien Raymond
1a3f51ade7
protobuf for kcp config 2016-09-21 14:39:07 +02:00
Darien Raymond
7de7588ec2
proto for destination 2016-09-20 11:53:05 +02:00
Darien Raymond
3fd66ad795
remove PingNecessary() 2016-08-25 12:00:31 +02:00
Darien Raymond
e49fb2f50d
no compacting buffers 2016-08-25 11:41:05 +02:00
Darien Raymond
fcad4aa212
adjust receiving buffer size 2016-08-25 09:45:56 +02:00
Darien Raymond
0da987ec43
refine buffer size 2016-08-25 00:04:54 +02:00
Darien Raymond
2ae8e5d033
rename buffer size 2016-08-24 23:54:39 +02:00
Darien Raymond
2839ce7a88
simplify receiving worker 2016-08-24 23:51:53 +02:00
Darien Raymond
5d20e3f70b
remove sending queue 2016-08-24 15:47:14 +02:00
Darien Raymond
e6e0419958
format private annotation 2016-08-24 11:17:42 +02:00
Darien Raymond
a9da266bf9
update default in-fligh size 2016-08-24 07:50:33 +02:00
Darien Raymond
98025e1457
change default kcp.tti to 50 2016-08-23 23:32:36 +02:00
v2ray
07a86f549b
unified import path 2016-08-20 20:55:45 +02:00
v2ray
d08ffedf48
reduce ping frequency 2016-08-20 11:33:22 +02:00
v2ray
0bca6e8657
fix kcp listener 2016-08-15 22:20:16 +02:00
v2ray
a5a70afdb8
remove port testing 2016-08-15 22:12:11 +02:00
v2ray
210a32dc12
support udp redirection 2016-08-15 17:44:46 +02:00
v2ray
75b8dd9521
error message refactoring 2016-08-07 15:31:24 +02:00
v2ray
81855469aa
rename SRTP 2016-08-07 15:05:05 +02:00
v2ray
2f0d602833
nil pointer protection 2016-08-07 08:45:03 +02:00
v2ray
0caf2e6d30
compact kcp stream 2016-08-07 01:01:44 +02:00
v2ray
c7d6302292
load srtp in main 2016-08-06 22:52:02 +02:00
v2ray
6ffc24f895
update roundtripinfo 2016-08-06 21:59:47 +02:00
v2ray
0d73726930
srtp header for kcp 2016-08-06 21:59:22 +02:00
v2ray
a15e33f720
rename RoundTripInfo 2016-08-05 21:03:44 +02:00
v2ray
00841583d2
reduce ack packet size and send peer RTO 2016-08-05 20:59:33 +02:00
v2ray
7f277c9bcc
prevent goroutine leak 2016-07-29 12:13:20 +02:00
v2ray
53cdcfdc2b
remove unnecessary goroutine 2016-07-29 11:50:02 +02:00
v2ray
b8421f659f
terminate connection 2016-07-29 11:49:53 +02:00
v2ray
7385c05f29
more test case for buffer 2016-07-28 16:29:38 +02:00
v2ray
42efa5dde0
refine buffer usage in kcp 2016-07-28 16:24:15 +02:00
v2ray
6fe7463bf4
simplify state checking 2016-07-26 21:34:00 +02:00
v2ray
85d6e1ad13
prepend hash 2016-07-17 23:11:05 +02:00
v2ray
1931820c4c
leverage local buffer 2016-07-17 12:59:57 +02:00
v2ray
a39132f4c2
update log 2016-07-16 22:14:20 +02:00
v2ray
bf2d45a83d
use local buffer when fetching input 2016-07-16 22:08:59 +02:00
v2ray
066e5e216d
fill windows after processing acks 2016-07-15 23:23:21 +02:00
v2ray
72ee6436eb
more accurate of rtt calculation 2016-07-15 23:18:18 +02:00
v2ray
d5cd919cec
remove duplicated code 2016-07-15 21:41:15 +02:00
v2ray
f6d4e599bd
configurable read and write buffer size 2016-07-15 21:27:23 +02:00
v2ray
631db6e69a
rename 2016-07-14 22:52:00 +02:00
v2ray
ef2d49302d
rename command 2016-07-14 22:10:37 +02:00
v2ray
ffdce592ec
remove sync.Pool from segment allocation 2016-07-14 21:42:00 +02:00
v2ray
906d846c2e
update test case 2016-07-14 21:31:54 +02:00
v2ray
c32f1a0152
update test case 2016-07-14 21:31:04 +02:00
v2ray
991b2703dc
improve writing performance 2016-07-14 17:39:12 +02:00
v2ray
0acd3b6d62
improve sending performance 2016-07-14 17:38:20 +02:00
v2ray
476b3c68d2
introduce a new state: peer terminating 2016-07-14 12:57:14 +02:00
v2ray
05ed05b9a0
correctly release segments 2016-07-13 23:15:40 +02:00
v2ray
73afe9a001
use alloc.Buffer in sending queue 2016-07-13 21:47:40 +02:00
v2ray
d602025908
update test performance 2016-07-13 09:19:51 +02:00
v2ray
c0a1198514
improve terminating performance 2016-07-12 23:54:54 +02:00
v2ray
9a44ff3145
static conv 2016-07-12 18:54:16 +02:00
v2ray
9434f5156c
fix memory leak 2016-07-12 18:27:14 +02:00
v2ray
205f8b382d
Fix race condition 2016-07-12 17:56:36 +02:00
v2ray
94d4b02191
non blocking flusing 2016-07-12 17:37:12 +02:00
v2ray
b68075a99d
test case for kcp read write 2016-07-12 17:11:36 +02:00
v2ray
4c63e9e168
improve fetch performance 2016-07-12 14:32:17 +02:00
v2ray
f7d54d57c4
remove lastpayloadtime 2016-07-12 14:23:42 +02:00
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
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
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
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
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
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
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