Commit Graph

1133 Commits (0c72d72f460204b0d73119178a040118a7d52459)

Author SHA1 Message Date
Darien Raymond d1f318c82a
remove unused functions
6 years ago
Darien Raymond d675bb92df
update benchmark for address
6 years ago
Darien Raymond 83c4b20b6e
fix lint warnings
6 years ago
Darien Raymond b1b8cb5ef5
Fix SplitSize
6 years ago
Darien Raymond 5c4e33f759
rewrite SliceBySize
6 years ago
Darien Raymond bcd5d026fe
rewrite SplitFirst
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 27772a75a7
refactor MultiBuffer append
6 years ago
Darien Raymond 1089a887e0
consider closed worker is full. fixes #1414
6 years ago
Darien Raymond 48cac1733f
remove NewMultiBufferCap
6 years ago
Darien Raymond 2364f5f280
remove AddressFamily.Either()
6 years ago
Darien Raymond a01fdc29a6
remove NewMultiBufferValue
6 years ago
Darien Raymond db5259e75b
avoid heap allocation for buffer variables
6 years ago
Darien Raymond deebb68597
update buf test
6 years ago
Darien Raymond a20262ef20
allocate buffer on stack
6 years ago
Darien Raymond a5ed9e00ab
revert opt on copy
6 years ago
Darien Raymond bd7bc63fac
prevent stack copy
6 years ago
Darien Raymond 151f316c32
remove unnecessary buf allocation
6 years ago
Darien Raymond 6d770d6f30
remove unused members
6 years ago
Darien Raymond 9bc6a5813e
improve performance on copy
6 years ago
Darien Raymond 0fd7e9216a
fix test break
6 years ago
Darien Raymond 10b4bbf7c6
use stack allocated byte array
6 years ago
Darien Raymond 770a20d266
stack allocated buffer
6 years ago
Darien Raymond 24288a74a2
update tests
6 years ago
Darien Raymond ac4f868078
introduce go-cmp
6 years ago
Darien Raymond 7560a99d7b
check frame size for status new
6 years ago
Darien Raymond 6c7dcc35ab
remove buffer.WriteBytes
6 years ago
Darien Raymond ff7e5a7cdb
benchmark mux frame
6 years ago
Darien Raymond 61b1013571
benchmark task
6 years ago
Darien Raymond 16102271dd
improve address serialization performance
6 years ago
Darien Raymond a14fae4b35
fix lint warnings
6 years ago
Darien Raymond c5ccbe6b63
cleanup serial package
6 years ago
Darien Raymond 953bfac572
remove unnecessary assignment
6 years ago
Darien Raymond 3f3d00298a
share rand reader across auth readers
6 years ago
Darien Raymond 440cf090d6
notify remote peer to close session
6 years ago
Wuxiang 557330808d
fix a typo
6 years ago
Darien Raymond 21e9a04dca
improve parse address performance
6 years ago
Darien Raymond db6d6a89df
fix infinite loop in mux dispatch
6 years ago
Darien Raymond fcce267e33
fix broken test
6 years ago
Darien Raymond 3ccdecaf8f
remove vio package
6 years ago
Darien Raymond 77c03f0da5
move back to serial
6 years ago
Darien Raymond 128a90b98b
move link to transport
6 years ago
Darien Raymond f7b96507f9
simplify buffer extension
6 years ago
Darien Raymond 35ccc3a49c
cleanup unnecessary method in serial.
6 years ago
Darien Raymond ad462860e2
fix test
6 years ago
Darien Raymond 815c7f09ba
migrate to std lib
6 years ago
Darien Raymond ee489c95b3
remove Port.Bytes()
6 years ago
Darien Raymond 58e2ed3381
remove closure on ReadFullFrom
6 years ago
Darien Raymond 9de03d088e
improve performance on domain matcher
6 years ago
Darien Raymond 9f48a6d017
enable global padding for aead by default
6 years ago
Darien Raymond 41956e92a5
migrate to the new geoip matcher
6 years ago
Darien Raymond c73e899f54
prototype for high performance geoip matcher
6 years ago
Darien Raymond ff310d6bc6
detect underlying mux worker closed
6 years ago
Darien Raymond f1ab89d9d8
long running reverse test case
6 years ago
Darien Raymond 715ac9d267
test case for reverse proxy
6 years ago
Darien Raymond 2020bbe606
prototype for reverse proxy
6 years ago
Darien Raymond 6c89940e65
fix #1338
6 years ago
Darien Raymond 8595bce33b
better load balancing
6 years ago
Darien Raymond 42e4f06fe9
fix flaky test
6 years ago
Darien Raymond 53870f1ea7
refactor mux client worker
6 years ago
Darien Raymond a69217b584
test case
6 years ago
Darien Raymond 284923664a
split worker picker from client manager
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 c272677065
better handle errors from copy
6 years ago
Darien Raymond c7f847c96e
categorize read and write error
6 years ago
Darien Raymond 04bbdfc426
refactor mux
6 years ago
Darien Raymond 838f2919ab
move mux to common
6 years ago
Darien Raymond dcae6c63dd
move size stats writer into vio
6 years ago
Darien Raymond 33becfe553
comments
6 years ago
Darien Raymond 595f3d685e
merge user info inbound metadata
6 years ago
Darien Raymond d730637239
Require Type() for Feature
6 years ago
Darien Raymond 273342d0b9
move stats and inbound to features directory
6 years ago
Darien Raymond b6dc31d3fe
first part to move feature interfaces into dedicated directory
6 years ago
Darien Raymond 0893de8901
use strings.Builder
6 years ago
Darien Raymond a3e189c822
rename error object
6 years ago
Darien Raymond 122c3e7a5d
use strings.Builder
6 years ago
Darien Raymond 091fa6ad23
use new errorgen
6 years ago
Darien Raymond f7a68fe4b8
simplify errorgen calling
6 years ago
Darien Raymond d55fbd7f8d
simplify error creation
6 years ago
Darien Raymond 00ea6e3cb2
update protobuf generated files
6 years ago
Darien Raymond 94b880d060
move session based info into session package
6 years ago
Darien Raymond f589769947
remove unused code
6 years ago
Darien Raymond 383b84e7dd
unified tproxy option
6 years ago
Darien Raymond 20251bf499
system listener for both TCP and UDP
6 years ago
Darien Raymond d068f357bd
update proto lib
6 years ago
Darien Raymond 81c9968188
simplify crypto related code
6 years ago
Darien Raymond 7b28a19013
improve domain matcher performance
6 years ago
Darien Raymond cfe7e7843b
shortcut the free operation too
6 years ago
Darien Raymond ff0b0b1640
GetPool() API
6 years ago
Darien Raymond 60ee80ca1b
don't write empty payload
6 years ago
Darien Raymond 475ffc8196
supress warning on ecryption packets
6 years ago
Darien Raymond b4f3106ad6
check msg size in writepacket
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 eaa420411d
fix a deadlock
6 years ago
Darien Raymond eb05a92592
dont start periodic task until necessary
6 years ago
Darien Raymond 5a0a9aa65e
reset cache if empty
6 years ago
Darien Raymond 1add59cd0d
actually start the cleanup task
6 years ago
Darien Raymond 0b388280ce
simplify writing
6 years ago
Darien Raymond 3df32aabbc
check empty payload
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 16051587b5
fix test break
6 years ago
Darien Raymond 54e1bb96cc
introduce in-memory user
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 9ad1e034e0
use gcm on arm64
6 years ago
Darien Raymond 128ec95218
merge stread reader from mux to crypto
6 years ago
Darien Raymond e6b5356ea9
don't alloc new maps until required
6 years ago
Darien Raymond 059dfdbb97
doc for strmatcher interface
6 years ago
Darien Raymond 44c759eeab
extract full matcher group
6 years ago
Darien Raymond 899b1399ee
check init state of DomainMatcherGroup. fixes #1238
6 years ago
Darien Raymond 26f52e61db
optimize CachedMatcherGroup
6 years ago
Darien Raymond e72d4d6c25
fix matcher group
6 years ago
Darien Raymond edcf564dd7
improve performance of domain matcher
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 b769e0cc5f
only create bufferedreader when necessary
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 8ed119e3f6
make sure err is propagated
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 8cfe77383f
writeHash
6 years ago
Darien Raymond 206f52affc
refine buffer interface
6 years ago
Darien Raymond d615adab36
optimize padding reading
6 years ago
Darien Raymond 47f1399995
check errors
6 years ago