1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-10 14:26:26 -05:00
Commit Graph

264 Commits

Author SHA1 Message Date
Darien Raymond
48cac1733f
remove NewMultiBufferCap 2018-11-16 11:29:16 +01:00
Darien Raymond
a01fdc29a6
remove NewMultiBufferValue 2018-11-16 11:08:12 +01:00
Darien Raymond
db5259e75b
avoid heap allocation for buffer variables 2018-11-16 10:30:26 +01:00
Darien Raymond
deebb68597
update buf test 2018-11-15 22:06:54 +01:00
Darien Raymond
a20262ef20
allocate buffer on stack 2018-11-15 21:32:27 +01:00
Darien Raymond
a5ed9e00ab
revert opt on copy 2018-11-15 21:16:54 +01:00
Darien Raymond
6d770d6f30
remove unused members 2018-11-15 19:59:23 +01:00
Darien Raymond
9bc6a5813e
improve performance on copy 2018-11-15 19:44:24 +01:00
Darien Raymond
0fd7e9216a
fix test break 2018-11-15 16:32:38 +01:00
Darien Raymond
ac4f868078
introduce go-cmp 2018-11-15 10:30:03 +01:00
Darien Raymond
6c7dcc35ab
remove buffer.WriteBytes 2018-11-14 22:55:20 +01:00
Darien Raymond
ff7e5a7cdb
benchmark mux frame 2018-11-14 22:11:05 +01:00
Darien Raymond
a14fae4b35
fix lint warnings 2018-11-13 23:19:58 +01:00
Darien Raymond
f7b96507f9
simplify buffer extension 2018-11-02 21:34:04 +01:00
Darien Raymond
58e2ed3381
remove closure on ReadFullFrom 2018-11-02 15:01:33 +01:00
Darien Raymond
e7345f079e
comments 2018-10-24 15:02:19 +02:00
Darien Raymond
de4072a65a
more test cases 2018-10-24 13:51:04 +02:00
Darien Raymond
2621305413
more test cases 2018-10-24 13:16:08 +02:00
Darien Raymond
c8e11595f2
update interface test 2018-10-24 13:09:07 +02:00
Darien Raymond
c7f847c96e
categorize read and write error 2018-10-24 12:02:02 +02:00
Darien Raymond
091fa6ad23
use new errorgen 2018-09-30 23:08:41 +02:00
Darien Raymond
d55fbd7f8d
simplify error creation 2018-09-30 18:39:53 +02:00
Darien Raymond
cfe7e7843b
shortcut the free operation too 2018-09-04 09:29:00 +02:00
Darien Raymond
ff0b0b1640
GetPool() API 2018-09-03 20:57:40 +02:00
Darien Raymond
2f6a0d539d
dont write out empty payload 2018-09-01 21:19:33 +02:00
Darien Raymond
b3b0649dd6
check size in Reset 2018-09-01 21:19:15 +02:00
Darien Raymond
834dc4ab7c
remove references after content is written 2018-08-31 22:56:17 +02:00
Darien Raymond
5c48d03fdf
revert rollback to 10.3 2018-08-31 15:17:45 +02:00
Darien Raymond
7053293347
fix sync issue in buffered writer 2018-08-31 15:02:35 +02:00
Darien Raymond
f1374f9caf
add !wasm flag for go 1.10 2018-08-31 14:23:42 +02:00
Darien Raymond
0067d3c80f
temporarily rollback to go 1.10 2018-08-31 12:24:49 +02:00
Darien Raymond
0b388280ce
simplify writing 2018-08-29 16:42:03 +02:00
Darien Raymond
09824b9b1a
don't release buffer as it is written 2018-08-29 16:35:01 +02:00
Darien Raymond
20f10c78b3
add support for wasm 2018-08-27 20:56:49 +02:00
Darien Raymond
b4d065610a
fix windows reader 2018-08-25 23:27:09 +02:00
Darien Raymond
7c9c66601e
print error 2018-08-25 22:41:36 +02:00
Darien Raymond
5baf839fcf
trace readv test 2018-08-25 22:23:30 +02:00
Darien Raymond
66a391cafe
remove overlapped call 2018-08-25 21:40:30 +02:00
Darien Raymond
d12148c0cd
try re-enable readv reader on windows 2018-08-25 20:54:37 +02:00
Darien Raymond
8899f985ce
Revert "enable readv reader on windows"
This reverts commit 4bd1ef0650.
2018-08-25 16:07:51 +02:00
Darien Raymond
4bd1ef0650
enable readv reader on windows 2018-08-25 12:51:48 +02:00
Darien Raymond
8c841a05fb
use readv reader by default 2018-08-25 10:41:39 +02:00
Darien Raymond
2ab6da28ba
implement readv reader for windows 2018-08-18 23:12:22 +02:00
Darien Raymond
2e11653694
remove BufferedReader.Direct 2018-08-17 20:45:23 +02:00
Darien Raymond
1b39199adf
fix test case on arm 2018-08-17 16:32:40 +02:00
Darien Raymond
5f8b64c646
use SingleReader on low end devices 2018-08-17 11:52:55 +02:00
Darien Raymond
2594f7027a
remove ToNetBuffers 2018-08-17 11:51:59 +02:00
Darien Raymond
950612544b
simple write for single buffer 2018-08-16 12:40:55 +02:00
Darien Raymond
fdb3a7b57d
remove use of buf.NewSize() 2018-08-16 12:05:33 +02:00
Darien Raymond
35129e6518
allocate copyHandler on stack 2018-08-09 13:30:44 +02:00
Darien Raymond
e343fe80a2
test case for writer creation 2018-08-08 10:33:40 +02:00
Darien Raymond
f27a381fe8
restrict multi-writer to syscall.conn only 2018-08-08 10:22:59 +02:00
Darien Raymond
7baa6977d3
cleanup buf interfaces 2018-07-31 13:43:27 +02:00
Darien Raymond
b3cf1f70d7
optimize readv reader 2018-07-31 13:04:55 +02:00
Darien Raymond
6a06908456
optimize encryption read/write operations 2018-07-31 12:37:59 +02:00
Darien Raymond
206f52affc
refine buffer interface 2018-07-30 22:45:06 +02:00
Darien Raymond
47f1399995
check errors 2018-07-29 13:19:03 +02:00
Darien Raymond
ebea255c74
eliminate partial writes 2018-07-28 15:03:40 +02:00
Darien Raymond
c15184d904
optimize readv on windows 2018-07-27 23:40:12 +02:00
Darien Raymond
f99fb3d87d
reduce readv alloc count 2018-07-27 23:35:50 +02:00
Darien Raymond
28ccd4ddd5
write all content 2018-07-27 23:35:02 +02:00
Darien Raymond
8d689fb92d
fix reader test 2018-07-27 23:34:49 +02:00
Darien Raymond
720aca16d5
remove buffer pool of 512k 2018-07-27 17:24:26 +02:00
Darien Raymond
20a08111ff
fix windows build 2018-07-25 11:51:42 +02:00
Darien Raymond
b1e07d2f6e
fix comments 2018-07-25 11:46:21 +02:00
Darien Raymond
232e715b8b
don't build readv for windows 2018-07-25 11:19:16 +02:00
Darien Raymond
ecb460b16a
better memory management 2018-07-24 22:17:30 +02:00
Darien Raymond
82ee23e6d0
make readv optional 2018-07-24 21:58:47 +02:00
Darien Raymond
a941ef5392
try readv 2018-07-24 21:48:28 +02:00
Darien Raymond
b05597df3a
fix passive connection in mux. fix #1167 2018-06-27 12:21:22 +02:00
Darien Raymond
adade2bffd
fix lint warnings 2018-05-31 11:55:11 +02:00
Darien Raymond
8f6e162142
fix lint warnings 2018-05-28 23:05:11 +02:00
Darien Raymond
e3508fffc6
deal with empty input in ReadAllToBytes. 2018-05-28 15:38:29 +02:00
Darien Raymond
b24e808a8a
fix pipe related tests 2018-05-25 12:50:33 +02:00
Darien Raymond
148a7d064d
simplify buf.BufferedReader 2018-04-21 00:54:53 +02:00
Darien Raymond
3997d13b97
rename Slice and Slice from to Resize and Advance 2018-04-19 23:48:38 +02:00
Darien Raymond
1425fd2ba9
remove Buffer.Append method 2018-04-19 22:56:55 +02:00
Darien Raymond
e6446d43c8
fix multibuf len 2018-04-18 11:45:40 +02:00
Darien Raymond
ef1d9d24cd
fix test break 2018-04-17 00:40:27 +02:00
Darien Raymond
5d23604713
rewrite ray -> pipe 2018-04-17 00:31:10 +02:00
Darien Raymond
64ebba3cff
implement transport.pipe 2018-04-16 14:57:13 +02:00
Darien Raymond
f751bb610c
refine ctlcmd 2018-04-13 13:54:36 +02:00
Darien Raymond
48e825567a
fix error detection for pipeline 2018-04-13 11:25:41 +02:00
Darien Raymond
9d7f43a299
fix lint errors 2018-04-11 16:15:29 +02:00
Darien Raymond
b7f2f30244
support fetching config from http 2018-04-08 23:22:55 +02:00
Darien Raymond
8f7bdede4e
add check for largeSize in case there is just one pool 2018-04-06 21:13:29 +02:00
Darien Raymond
27ccc9d726
comments 2018-04-03 22:34:59 +02:00
Darien Raymond
c5bd23105e
change uint32 to int32 2018-04-02 22:01:55 +02:00
Darien Raymond
08dab81eb2
migrate int to int32 2018-04-02 20:00:50 +02:00
Darien Raymond
4de3f1adc1
change ReadFullFrom to take int32 size 2018-04-02 00:44:47 +02:00
Darien Raymond
03512a6a9b
read size to multi buffer 2018-04-02 00:25:42 +02:00
Darien Raymond
3d919a6a93
optimize auth reader 2018-04-01 23:31:53 +02:00
Darien Raymond
b3ecb9f766
align large size 2018-04-01 12:20:32 +02:00
Darien Raymond
fa6ff77cee
prevent appending nil buffer 2018-03-29 21:40:23 +02:00
Darien Raymond
bb46a96f04
refine handling for empty read 2018-03-29 18:15:50 +02:00
Darien Raymond
babd0107cf
prevent empty read in Reader 2018-03-29 10:40:18 +02:00
Darien Raymond
141b31eb19
simplify code 2018-03-28 22:23:49 +02:00
Darien Raymond
47c92fafc8
clear leftOver after write 2018-03-28 22:23:38 +02:00
Darien Raymond
eeed65f826
fix #999 2018-03-28 14:33:34 +02:00
DarienRaymond
1dadd54502
Merge pull request #985 from yujinqiu/yet-another-typo
Fix another typo
2018-03-24 20:42:01 +01:00