Commit Graph

1150 Commits (master)

Author SHA1 Message Date
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
Darien Raymond ebea255c74
eliminate partial writes
6 years ago
Darien Raymond 7a4b0fff07
ensure everything are written
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 e8959dff86
fix http sniffer
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 4b63638dca
update protobuf lib
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 e3cc12995f
fix some lint errors
6 years ago
Darien Raymond 9a8488074e
env flag controlled global padding
6 years ago
Darien Raymond c52310cf54
optimize bounds check in bytes conversion
6 years ago
Darien Raymond 8912e4eb90
move sniffer to their own directory
6 years ago
Darien Raymond eafe580be4
accelerate one task execution
6 years ago
Darien Raymond 5e25741742
update tests
6 years ago
Darien Raymond 29ad2cbbdb
function to compare byte array
6 years ago
Darien Raymond 7efa7ee632
prepare to remove constructor of AuthenticationReader
6 years ago
Darien Raymond 81c9743ce0
fix auth test
6 years ago
Darien Raymond 8a879deac1
max padding len as variable
6 years ago
Darien Raymond 69774c99dc
fix padding value
6 years ago
Darien Raymond f54a8735ab
global padding in vmess protocol
6 years ago
Darien Raymond 0d94d25688
prototype of mtproto proxy
6 years ago
Darien Raymond e3cc852c57
udp dispatcher takes context with dispatching requests. fixes #1182.
6 years ago
Darien Raymond 07e2592117
fix #1181
6 years ago
Darien Raymond b23b218a7e
map based subscriber list
6 years ago
Darien Raymond 4368edf87c
switch to pubsub in dns service
6 years ago
Darien Raymond 596d05bff5
check closed again before scheduling another task
6 years ago
Darien Raymond b05597df3a
fix passive connection in mux. fix #1167
7 years ago
Darien Raymond cb0eb91f2b
strmatcher
7 years ago
Darien Raymond ff0ae91b9b
update protobuf generated files
7 years ago
Darien Raymond e5f6554703
fix notifier for backward compatibility
7 years ago
Darien Raymond 2fb77d6911
consume context in local nameserver.
7 years ago
Darien Raymond 9cfb2bfd51
simplify classic dns server
7 years ago
Darien Raymond 9977eadf8c
remove dependency from errors to session
7 years ago
Darien Raymond ef4542e778
fix race condition in ActivityTimer
7 years ago
Darien Raymond 3b765a7b35
remove unused code
7 years ago
Darien Raymond 3620ebfc11
optimize for small number of tasks
7 years ago
Darien Raymond b01180b913
fix lint warnings
7 years ago
Darien Raymond 54e2244c5a
fix #1131
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 d6513ee4ec
test case for 0 timeout
7 years ago
Darien Raymond 6dbe2644a9
fix activity timer on timeout = 0
7 years ago
Darien Raymond ac6a0f7511
update activity timer
7 years ago
Darien Raymond 13f3c356ca
unified task package
7 years ago
Darien Raymond 7fa4bb434b
fix pipe closing logic for inbound proxies.
7 years ago
Darien Raymond 483a56c847
adjust lint settings
7 years ago
Darien Raymond 67f5292f38
fix lint errors
7 years ago
Darien Raymond b24e808a8a
fix pipe related tests
7 years ago
Darien Raymond 68da956fc4
re-generate code
7 years ago
Darien Raymond 8eb84a2025
Close outbound output stream properly. fix #1082
7 years ago
Darien Raymond f1f4a796cf
Set correct remote addr for h2 request. Fixes #1068.
7 years ago
Darien Raymond 148a7d064d
simplify buf.BufferedReader
7 years ago
Darien Raymond d7aeb51904
merge http.Connection into net.Connection
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 d6dc88860b
simplify done api
7 years ago
Darien Raymond e5122a4c2d
remove test case for next
7 years ago
Darien Raymond 67c7d6da4a
move uuid.Next to protocol
7 years ago
Darien Raymond 0caf2a004b
reduce memory usage of vmess internal objects
7 years ago
Darien Raymond 66ed1bab2a
simplify BytesGenerator
7 years ago
Darien Raymond f175d322ae
fix lint warnings
7 years ago
Darien Raymond 320e1554bd
update issue template
7 years ago
wuxiangzhou2010 e986217ed6 fix uinitTest failure on win10
7 years ago
Darien Raymond f751bb610c
refine ctlcmd
7 years ago
Darien Raymond 48e825567a
fix error detection for pipeline
7 years ago
Darien Raymond 0e1d2a924b
support organization in TLS cert gen
7 years ago
Darien Raymond 666a1a17f2
fix test
7 years ago
Darien Raymond 0caf92726b
better way to run tasks in parallel
7 years ago
Darien Raymond 9d7f43a299
fix lint errors
7 years ago
Darien Raymond 318a36fe58
automatic issuing certificates from provided CA
7 years ago
Darien Raymond 8ba8ce7d6a
more options for generating certificate
7 years ago
Darien Raymond b7fc1f0bd6
scenario test for domain socket
7 years ago
Darien Raymond a320196b77
refine domain socket transport
7 years ago
Darien Raymond 4b45174650
fix handling of empty buffer
7 years ago
DarienRaymond 61d9b04ca5
Merge pull request #1019 from v2ray/domainsocket
7 years ago
Darien Raymond 88133aa4a6
move cert generation code to common
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
Shelikhoo c542c043f3
Merge branch 'master' of github.com:v2ray/v2ray-core into domainsocket
7 years ago
Darien Raymond 61a1cce972
reduce size of TransferType
7 years ago
Darien Raymond 9f198d7e3d
fix lint errors
7 years ago
Darien Raymond 27ccc9d726
comments
7 years ago
Darien Raymond 074dfbb78c
add network list to shadowsocks server
7 years ago
DarienRaymond 8bc20c8656
Merge pull request #1013 from wuxiangzhou2010/master
7 years ago
Darien Raymond 7bafd7a1ab
migrate int to int32
7 years ago
wuxiang 3f19d09878 update some comments
7 years ago
Darien Raymond c5bd23105e
change uint32 to int32
7 years ago
Darien Raymond 81a147e540
Merge branch 'master' of https://github.com/v2ray/v2ray-core
7 years ago
Darien Raymond 08dab81eb2
migrate int to int32
7 years ago
wuxiangzhou2010 5a08411ee2 fix typo
7 years ago
wuxiangzhou2010 a58063e7ac fix typo, first sound of user is not a vowel, but the consonant /j/
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 5af3580bcf
correct magic number
7 years ago
Darien Raymond 3d919a6a93
optimize auth reader
7 years ago
Darien Raymond 8d0a74b3fa
refine auth writer
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 fc7da93d06
less cap
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
Jinqiu Yu 2d5aa9514f consistent ServerSpec var
7 years ago
Darien Raymond b2d9364cb5
release buffer if payload becomes small
7 years ago
Darien Raymond 000e0804e8
fix buffer recycling
7 years ago
DarienRaymond a8a68c2e70
Merge pull request #962 from yujinqiu/fix-typo
7 years ago
Darien Raymond b5b9a83823
reorder fields in Destination for faster hashing
7 years ago
Jinqiu Yu 855925a805 Fix typo
7 years ago
Darien Raymond 087c0c1499
refine address family type
7 years ago
Darien Raymond b4e1240160
comments
7 years ago
Darien Raymond 1cbfeea0cd
simplify NewSize calls
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
Jinqiu Yu 87dd1ed877 Fix receivced, InboundBound, tranport, Enpoint typo
7 years ago
Darien Raymond eaf043f1b3
reduce memory usage of Buffer
7 years ago
Darien Raymond fbc025869b
fix lint errors
7 years ago
Jinqiu Yu 8864195b50 Fix executable typo
7 years ago
Darien Raymond 9100a78914
refactor
7 years ago
Darien Raymond a52eb8f82b
allow underscore in domain name. fixes #917
7 years ago
Darien Raymond d207d953bd
h2 transport
7 years ago
Darien Raymond a7d467992d
try parse domain address as IP. fixes #894.
7 years ago
Darien Raymond 2b4104e491
benchmark for dice
7 years ago
Darien Raymond a42b4b513e
test case for write address
7 years ago
Darien Raymond af1abf687c
unify all address reading and writing
7 years ago
Darien Raymond 546c2fb226
settings for forcing secure encryption in vmess server
7 years ago
Darien Raymond df34931ab3
fix log test
7 years ago
Darien Raymond bc1979400e
simplify log
7 years ago
Darien Raymond 6b872c266c
session id
7 years ago
Darien Raymond 098244530b
update Must2
7 years ago
Darien Raymond b3fd320be7
more test cases
7 years ago
Darien Raymond b3e46f5d07
fix error handling in buf.Copy
7 years ago
Darien Raymond c48fa50ab1
logger service
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
Shelikhoo 7f34cbdaff
Add Generated Files
7 years ago
Darien Raymond 20fc4950b2
comments
7 years ago
Darien Raymond 997c852be8
remove unused code
7 years ago
Darien Raymond 42d83a703e
fix transfer for mux
7 years ago
Darien Raymond 87ba7dd0d1
implement remove user in vmess
7 years ago
Darien Raymond f8ce1945e1
remove unused code
7 years ago
Darien Raymond c368412728
test case for periodic task
7 years ago
Darien Raymond efcb567273
remove context in struct
7 years ago
Darien Raymond ede2c39967
non-blocking timer. Fixes #848
7 years ago
Darien Raymond 0e01e28278
use uuid as struct
7 years ago
Darien Raymond 7d2c34f674
remove unused code
7 years ago
Darien Raymond 292d7cc353
massive refactoring for interoperability
7 years ago
Darien Raymond 5a3c7fdd20
remove use of unsafe
7 years ago
Darien Raymond c5d356545e
comments for typed messages
7 years ago
Darien Raymond 8a09c6c926
migrate to signal.Semaphore and Notifier
7 years ago
Darien Raymond a82ca019b2
release script relocation
7 years ago
Darien Raymond 4656d5fd6d
fix lint warnings
7 years ago
Darien Raymond 7fdaa02bf6
comments
7 years ago
Darien Raymond 3938c65f7d
fix log format
7 years ago
Darien Raymond 11d726f9bf
refine log handlers
7 years ago
Darien Raymond c91112798c
test cases for common
7 years ago
Darien Raymond ab4f245313
overrideable dns
7 years ago
Darien Raymond 3b45a8d4cc
comments
7 years ago
Darien Raymond f4c35db968
merge log into common log
7 years ago
Darien Raymond 12ae92ade4
exclude errorgen from coverage
7 years ago
Darien Raymond 1f226797bc
remove header operation to http protocol package
7 years ago
Darien Raymond 91ca88bcff
read original addr from x-forwarded-for header if present
7 years ago
Darien Raymond a0b2c285b2
more test cases
7 years ago
Darien Raymond 0959755d21
fix a buffer leak in buffered reader
7 years ago