Commit Graph

250 Commits (811f0dd6476bdd54285a17414d5647e8e544ec82)

Author SHA1 Message Date
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
Darien Raymond 0959755d21
fix a buffer leak in buffered reader
7 years ago
Darien Raymond 123977e324
fix misspelling
7 years ago
Darien Raymond 4c7c42d39f
grow buffer size slower
7 years ago
Darien Raymond 7709ee9b7f
more interface test
7 years ago
Darien Raymond d43a23aa96
move error generator to common
7 years ago
Darien Raymond 519eb344db
handle data first and then error
7 years ago
Darien Raymond 41961dbd60
cleanup
7 years ago
Darien Raymond 052d2d8278
merge noOpBytesWriter into noOpWriter
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 b0ac43a8fc
comments
7 years ago
Darien Raymond fcc66704fa
comments
7 years ago
Darien Raymond 66ebeaa0ca
cleanup
7 years ago
Darien Raymond ec8f8d4e10
remove check for ReaderFrom on underlying writer, as it may be badly implemented.
7 years ago
Darien Raymond afcad409e2
reallocate in for loop
7 years ago
Darien Raymond 23b768576e
always allocate buffer in Write
7 years ago
Darien Raymond 743d35c059
flush when not buffered
7 years ago
Darien Raymond f3c5df8798
make sure writer not buffered
7 years ago
Darien Raymond 594ec15c09
cleanup buffer usage
7 years ago
Darien Raymond 66b82e4ab7
cleanup MultiBuffer
7 years ago
Darien Raymond 3d2fd372e1
avoid writing empty payload in bytesToBufferWriter
7 years ago
Darien Raymond d5fd7efa7e
fast read on first packet
7 years ago
Darien Raymond 2a96aaaf7b
comments
7 years ago
Darien Raymond 7cd2d62d06
release buffer on error
7 years ago
Darien Raymond 8554a5e0bf
fix buffer leak
7 years ago
Darien Raymond 1b6b39faad
comments
7 years ago
Darien Raymond ccf1fb6616
fix buffer leak in multi buffer
7 years ago
Darien Raymond 4b240eb683 DiscardBytes
7 years ago
Darien Raymond 4412d73b28 get rid off ioutil
7 years ago
Darien Raymond 2f5d501643 fix length calculation in bufferToBytesReader.WriteTo
7 years ago
Darien Raymond 6c9a60100d format code
7 years ago
Darien Raymond 74cf833758 fully migrate to new assertion lib
7 years ago
Darien Raymond 233bb08e56 fix lint warnings
7 years ago
Darien Raymond 49914adf00 remove buffer pool in favor of Go 1.9 concurrent GC
7 years ago
Darien Raymond bae5639dfd refactor
7 years ago
Darien Raymond 109a37fe7e aggressively close connection when response is done
7 years ago
Darien Raymond 08a72b7eb6
go generate
7 years ago
Darien Raymond 07847576b5
refine copy handler
8 years ago
Darien Raymond 10bc421af9
fix type conversion
8 years ago
Darien Raymond b16a82024c
normalized env variable names for bash
8 years ago
Darien Raymond ade88fd5c7
reuse buffered writer in auth writer
8 years ago
Darien Raymond a8da85eca5
simplify code
8 years ago
Darien Raymond 939fae00e9
packet mode reader and writer
8 years ago
Darien Raymond 3821ee21fc
handle nil onData
8 years ago
Darien Raymond 6f3362fc4c
update activity
8 years ago
Darien Raymond f418b9bc20
swallow write error in mux
8 years ago
Darien Raymond 7f1e9c85c9
more effecient auth reader and writer
8 years ago
Darien Raymond 94405dd467
fix snifer
8 years ago
Darien Raymond 59a1e2d736
refactor
8 years ago
Darien Raymond cea6e28634
refactor
8 years ago
Darien Raymond e87b0ca848
size encoder and decoder
8 years ago
Darien Raymond 6a90ce3c43
comments
8 years ago
Darien Raymond 498c7dafdf
clean udp writer
8 years ago
Darien Raymond eda72624e2
test case for sync pool
8 years ago
Darien Raymond 67dbb86b0e
cleanup
8 years ago
Darien Raymond f01b0552a9
direct multibuf reading from kcp engine
8 years ago
Darien Raymond 5f4acaa9ea
merging reader and writer
8 years ago
Darien Raymond 5a30e27f04
use normal byte array
8 years ago
Darien Raymond 6d7aaa6535
bug fixes
8 years ago
Darien Raymond 0ebebfa458
cleanup
8 years ago
Darien Raymond 7e2246907b
refactor bytes reader
8 years ago
Darien Raymond 31a0951bd2
write by slice when buffer is too large
8 years ago
Darien Raymond 6361ea3188
refactor
8 years ago
Darien Raymond 14c75e5035
more test code
8 years ago
Darien Raymond ab9349ec31
rename buf.Copy
8 years ago
Darien Raymond e362c74fa9
remove unused code
8 years ago
Darien Raymond 8868fe68ed
optimize http server
8 years ago
Darien Raymond d9ea65696a
increase multi buffer capacity
8 years ago
Darien Raymond e5525715fb
optimize cfb stream writer
8 years ago
Darien Raymond 5c2cabb44e
clear reference on release
8 years ago
Darien Raymond 2f565bfd5e
simplify ray stream
8 years ago
Darien Raymond abe790181e
multi reader
8 years ago
Darien Raymond ed7b22622c
release buffer properly
8 years ago
Darien Raymond b1dfff2fdd
remove 8k buffer pool
8 years ago
Darien Raymond f506a39d32
multi buffer
8 years ago
Darien Raymond 68bc9ea8e4
cleanup error messages
8 years ago
Darien Raymond 35248497d2
refactor error messages
8 years ago
Darien Raymond 18b0b87c52
no-op timer
8 years ago
Darien Raymond 891b8a03de
refactor
8 years ago
Darien Raymond f34ad57b58
refactor timer api
8 years ago
Darien Raymond b2c7b1a120
fix dead loop in merging reader
8 years ago
Darien Raymond f643344154
merge buf stream
8 years ago
Darien Raymond 14824c8451
fix timeout reader usage
8 years ago
Darien Raymond cb0e29ccdb
merging reader
8 years ago
Darien Raymond bf7906c7f0
clean lint warnings
8 years ago
Darien Raymond 4d34d081f1
reduce default pool size for non x86 platform to 5MB.
8 years ago
Darien Raymond 020b436827
merge bufio into buf
8 years ago
Darien Raymond 4e8e15d528
refine error handling in byte reader
8 years ago
Darien Raymond c462e35aad
cancel sessions after inactivity
8 years ago
Darien Raymond e678000c44
remove release() pattern
8 years ago
Darien Raymond a44d556667
test case for tls connection
8 years ago
Darien Raymond 538b0720d5
simplified Release()
8 years ago
Darien Raymond ea33b7691b
remove lock on bytes reader and writer
8 years ago
Darien Raymond ceaf5d1178
fix lint warnings
8 years ago
Darien Raymond 582438ce5e
gofmt
8 years ago
Darien Raymond 792e8ffd20
comments
8 years ago
Darien Raymond ff87377acf
comments
8 years ago
Darien Raymond 1948d0738f
refactor io package
8 years ago
Darien Raymond 055023fdd5
refactor buffer
8 years ago
Darien Raymond 7a80409e30
rename alloc to buf
8 years ago