Commit Graph

68 Commits (811f0dd6476bdd54285a17414d5647e8e544ec82)

Author SHA1 Message Date
ghost 8da0a53845 properly propagate Reader errors
5 years ago
ghost f7abe353df fix ReadBuffer()
5 years ago
Darien Raymond a84897b4b6
simplify ReadBuffer
6 years ago
Darien Raymond 4e77570f36
fix connection reading in UDP
6 years ago
Darien Raymond ce91e92435
fix #1496
6 years ago
Darien Raymond 0f63be6340
open ReadBuffer for quic connections
6 years ago
Darien Raymond 3340f81d03
fix reader/writer for packet conn
6 years ago
Darien Raymond e392f8ed3d
use WriteByte instead of copy
6 years ago
Darien Raymond 844f6937a4
reduce memory consumption on readOne
6 years ago
Darien Raymond 5c4e33f759
rewrite SliceBySize
6 years ago
Darien Raymond cb7646f682
remove unnecessary err object from SplitBytes
6 years ago
Darien Raymond 842a089dad
refactor multibuffer
6 years ago
Darien Raymond 0f324a613e
remove MultiBuffer.Release
6 years ago
Darien Raymond 48cac1733f
remove NewMultiBufferCap
6 years ago
Darien Raymond 58e2ed3381
remove closure on ReadFullFrom
6 years ago
Darien Raymond e7345f079e
comments
6 years ago
Darien Raymond de4072a65a
more test cases
6 years ago
Darien Raymond 8c841a05fb
use readv reader by default
6 years ago
Darien Raymond 2e11653694
remove BufferedReader.Direct
6 years ago
Darien Raymond fdb3a7b57d
remove use of buf.NewSize()
6 years ago
Darien Raymond b3cf1f70d7
optimize readv reader
6 years ago
Darien Raymond 6a06908456
optimize encryption read/write operations
6 years ago
Darien Raymond 47f1399995
check errors
6 years ago
Darien Raymond 148a7d064d
simplify buf.BufferedReader
7 years ago
Darien Raymond 64ebba3cff
implement transport.pipe
7 years ago
Darien Raymond b7f2f30244
support fetching config from http
7 years ago
Darien Raymond 8f7bdede4e
add check for largeSize in case there is just one pool
7 years ago
Darien Raymond c5bd23105e
change uint32 to int32
7 years ago
Darien Raymond 08dab81eb2
migrate int to int32
7 years ago
Darien Raymond 4de3f1adc1
change ReadFullFrom to take int32 size
7 years ago
Darien Raymond 3d919a6a93
optimize auth reader
7 years ago
Darien Raymond b3ecb9f766
align large size
7 years ago
Darien Raymond bb46a96f04
refine handling for empty read
7 years ago
Darien Raymond babd0107cf
prevent empty read in Reader
7 years ago
Darien Raymond 47c92fafc8
clear leftOver after write
7 years ago
Darien Raymond b2d9364cb5
release buffer if payload becomes small
7 years ago
Darien Raymond 5bbece14af
simplify pool creation
7 years ago
Darien Raymond f97e6fa3d2
refine buffer allocation
7 years ago
Darien Raymond ccb2a9f168
comments
7 years ago
Darien Raymond 4c7c42d39f
grow buffer size slower
7 years ago
Darien Raymond 7709ee9b7f
more interface test
7 years ago
Darien Raymond 519eb344db
handle data first and then error
7 years ago
Darien Raymond 41961dbd60
cleanup
7 years ago
Darien Raymond 6de4ef014a
read directly from underlying buffered reader in mux
7 years ago
Darien Raymond 2fdccb2424
handle read with data and error at same time
7 years ago
Darien Raymond 594ec15c09
cleanup buffer usage
7 years ago
Darien Raymond 66b82e4ab7
cleanup MultiBuffer
7 years ago
Darien Raymond d5fd7efa7e
fast read on first packet
7 years ago
Darien Raymond 2f5d501643 fix length calculation in bufferToBytesReader.WriteTo
7 years ago
Darien Raymond 08a72b7eb6
go generate
7 years ago