Commit Graph

250 Commits (811f0dd6476bdd54285a17414d5647e8e544ec82)

Author SHA1 Message Date
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 2621305413
more test cases
6 years ago
Darien Raymond c8e11595f2
update interface test
6 years ago
Darien Raymond c7f847c96e
categorize read and write error
6 years ago
Darien Raymond 091fa6ad23
use new errorgen
6 years ago
Darien Raymond d55fbd7f8d
simplify error creation
6 years ago
Darien Raymond cfe7e7843b
shortcut the free operation too
6 years ago
Darien Raymond ff0b0b1640
GetPool() API
6 years ago
Darien Raymond 2f6a0d539d
dont write out empty payload
6 years ago
Darien Raymond b3b0649dd6
check size in Reset
6 years ago
Darien Raymond 834dc4ab7c
remove references after content is written
6 years ago
Darien Raymond 5c48d03fdf
revert rollback to 10.3
6 years ago
Darien Raymond 7053293347
fix sync issue in buffered writer
6 years ago
Darien Raymond f1374f9caf
add !wasm flag for go 1.10
6 years ago
Darien Raymond 0067d3c80f
temporarily rollback to go 1.10
6 years ago
Darien Raymond 0b388280ce
simplify writing
6 years ago
Darien Raymond 09824b9b1a
don't release buffer as it is written
6 years ago
Darien Raymond 20f10c78b3
add support for wasm
6 years ago
Darien Raymond b4d065610a
fix windows reader
6 years ago
Darien Raymond 7c9c66601e
print error
6 years ago
Darien Raymond 5baf839fcf
trace readv test
6 years ago
Darien Raymond 66a391cafe
remove overlapped call
6 years ago
Darien Raymond d12148c0cd
try re-enable readv reader on windows
6 years ago
Darien Raymond 8899f985ce
Revert "enable readv reader on windows"
6 years ago
Darien Raymond 4bd1ef0650
enable readv reader on windows
6 years ago
Darien Raymond 8c841a05fb
use readv reader by default
6 years ago
Darien Raymond 2ab6da28ba
implement readv reader for windows
6 years ago
Darien Raymond 2e11653694
remove BufferedReader.Direct
6 years ago
Darien Raymond 1b39199adf
fix test case on arm
6 years ago
Darien Raymond 5f8b64c646
use SingleReader on low end devices
6 years ago
Darien Raymond 2594f7027a
remove ToNetBuffers
6 years ago
Darien Raymond 950612544b
simple write for single buffer
6 years ago
Darien Raymond fdb3a7b57d
remove use of buf.NewSize()
6 years ago
Darien Raymond 35129e6518
allocate copyHandler on stack
6 years ago
Darien Raymond e343fe80a2
test case for writer creation
6 years ago
Darien Raymond f27a381fe8
restrict multi-writer to syscall.conn only
6 years ago
Darien Raymond 7baa6977d3
cleanup buf interfaces
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 206f52affc
refine buffer interface
6 years ago
Darien Raymond 47f1399995
check errors
6 years ago
Darien Raymond ebea255c74
eliminate partial writes
6 years ago
Darien Raymond c15184d904
optimize readv on windows
6 years ago
Darien Raymond f99fb3d87d
reduce readv alloc count
6 years ago
Darien Raymond 28ccd4ddd5
write all content
6 years ago
Darien Raymond 8d689fb92d
fix reader test
6 years ago
Darien Raymond 720aca16d5
remove buffer pool of 512k
6 years ago
Darien Raymond 20a08111ff
fix windows build
6 years ago
Darien Raymond b1e07d2f6e
fix comments
6 years ago
Darien Raymond 232e715b8b
don't build readv for windows
6 years ago
Darien Raymond ecb460b16a
better memory management
6 years ago
Darien Raymond 82ee23e6d0
make readv optional
6 years ago
Darien Raymond a941ef5392
try readv
6 years ago
Darien Raymond b05597df3a
fix passive connection in mux. fix #1167
7 years ago
Darien Raymond adade2bffd
fix lint warnings
7 years ago
Darien Raymond 8f6e162142
fix lint warnings
7 years ago
Darien Raymond e3508fffc6
deal with empty input in ReadAllToBytes.
7 years ago
Darien Raymond b24e808a8a
fix pipe related tests
7 years ago
Darien Raymond 148a7d064d
simplify buf.BufferedReader
7 years ago
Darien Raymond 3997d13b97
rename Slice and Slice from to Resize and Advance
7 years ago
Darien Raymond 1425fd2ba9
remove Buffer.Append method
7 years ago
Darien Raymond e6446d43c8
fix multibuf len
7 years ago
Darien Raymond ef1d9d24cd
fix test break
7 years ago
Darien Raymond 5d23604713
rewrite ray -> pipe
7 years ago
Darien Raymond 64ebba3cff
implement transport.pipe
7 years ago
Darien Raymond f751bb610c
refine ctlcmd
7 years ago
Darien Raymond 48e825567a
fix error detection for pipeline
7 years ago
Darien Raymond 9d7f43a299
fix lint errors
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 27ccc9d726
comments
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 03512a6a9b
read size to multi buffer
7 years ago
Darien Raymond 3d919a6a93
optimize auth reader
7 years ago
Darien Raymond b3ecb9f766
align large size
7 years ago
Darien Raymond fa6ff77cee
prevent appending nil buffer
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 141b31eb19
simplify code
7 years ago
Darien Raymond 47c92fafc8
clear leftOver after write
7 years ago
Darien Raymond eeed65f826
fix #999
7 years ago
DarienRaymond 1dadd54502
Merge pull request #985 from yujinqiu/yet-another-typo
7 years ago
Jinqiu Yu eb38f4865e Fix another typo
7 years ago
Darien Raymond b2d9364cb5
release buffer if payload becomes small
7 years ago
Darien Raymond 000e0804e8
fix buffer recycling
7 years ago
Darien Raymond b4e1240160
comments
7 years ago
Darien Raymond 0c213ccd20
reset buffer when free
7 years ago
Darien Raymond 5bbece14af
simplify pool creation
7 years ago
Darien Raymond 34c12c1af6
extend buffer
7 years ago
Darien Raymond 931c8597ca
fix len -> cap
7 years ago
Darien Raymond 994aecd13c
rename NewLocal to NewSize
7 years ago
Darien Raymond f97e6fa3d2
refine buffer allocation
7 years ago
Darien Raymond eaf043f1b3
reduce memory usage of Buffer
7 years ago
Darien Raymond b3e46f5d07
fix error handling in buf.Copy
7 years ago
Darien Raymond ccb2a9f168
comments
7 years ago
Darien Raymond ae4dece6b0
explictly use the io.Writer instance for writing net.Buffers
7 years ago