1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 17:38:45 -05:00
Commit Graph

68 Commits

Author SHA1 Message Date
ghost
8da0a53845 properly propagate Reader errors 2019-11-22 10:11:23 +08:00
ghost
f7abe353df fix ReadBuffer() 2019-11-03 17:37:44 +08:00
Darien Raymond
a84897b4b6
simplify ReadBuffer 2019-02-10 10:53:16 +01:00
Darien Raymond
4e77570f36
fix connection reading in UDP 2019-01-06 00:34:38 +01:00
Darien Raymond
ce91e92435
fix #1496 2019-01-04 00:24:28 +01:00
Darien Raymond
0f63be6340
open ReadBuffer for quic connections 2018-12-03 16:01:14 +01:00
Darien Raymond
3340f81d03
fix reader/writer for packet conn 2018-12-03 14:20:57 +01:00
Darien Raymond
e392f8ed3d
use WriteByte instead of copy 2018-12-03 12:50:24 +01:00
Darien Raymond
844f6937a4
reduce memory consumption on readOne 2018-12-03 12:40:38 +01:00
Darien Raymond
5c4e33f759
rewrite SliceBySize 2018-11-18 20:16:14 +01:00
Darien Raymond
cb7646f682
remove unnecessary err object from SplitBytes 2018-11-18 19:44:32 +01:00
Darien Raymond
842a089dad
refactor multibuffer 2018-11-18 19:36:36 +01:00
Darien Raymond
0f324a613e
remove MultiBuffer.Release 2018-11-17 22:45:07 +01:00
Darien Raymond
48cac1733f
remove NewMultiBufferCap 2018-11-16 11:29:16 +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
8c841a05fb
use readv reader by default 2018-08-25 10:41:39 +02:00
Darien Raymond
2e11653694
remove BufferedReader.Direct 2018-08-17 20:45:23 +02:00
Darien Raymond
fdb3a7b57d
remove use of buf.NewSize() 2018-08-16 12:05:33 +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
47f1399995
check errors 2018-07-29 13:19:03 +02:00
Darien Raymond
148a7d064d
simplify buf.BufferedReader 2018-04-21 00:54:53 +02:00
Darien Raymond
64ebba3cff
implement transport.pipe 2018-04-16 14:57:13 +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
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
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
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
47c92fafc8
clear leftOver after write 2018-03-28 22:23:38 +02:00
Darien Raymond
b2d9364cb5
release buffer if payload becomes small 2018-03-16 22:32:03 +07:00
Darien Raymond
5bbece14af
simplify pool creation 2018-03-12 16:21:39 +01:00
Darien Raymond
f97e6fa3d2
refine buffer allocation 2018-03-11 23:06:04 +01:00
Darien Raymond
ccb2a9f168
comments 2018-02-13 11:15:04 +01:00
Darien Raymond
4c7c42d39f
grow buffer size slower 2017-12-08 13:23:15 +01:00
Darien Raymond
7709ee9b7f
more interface test 2017-12-03 23:11:29 +01:00
Darien Raymond
519eb344db
handle data first and then error 2017-11-26 15:08:37 +01:00
Darien Raymond
41961dbd60
cleanup 2017-11-25 21:58:47 +01:00
Darien Raymond
6de4ef014a
read directly from underlying buffered reader in mux 2017-11-25 01:05:30 +01:00
Darien Raymond
2fdccb2424
handle read with data and error at same time 2017-11-24 23:16:01 +01:00
Darien Raymond
594ec15c09
cleanup buffer usage 2017-11-09 22:33:15 +01:00
Darien Raymond
66b82e4ab7
cleanup MultiBuffer 2017-11-09 00:55:28 +01:00
Darien Raymond
d5fd7efa7e
fast read on first packet 2017-11-08 22:23:21 +01:00
Darien Raymond
2f5d501643 fix length calculation in bufferToBytesReader.WriteTo 2017-11-03 13:19:48 +01:00
Darien Raymond
08a72b7eb6
go generate 2017-07-24 21:41:12 +02:00