Commit Graph

865 Commits (9997567bd469843f3ca21551fe646af946ea442a)

Author SHA1 Message Date
Darien Raymond 6e28b4f91d
temporarily disable asm code
6 years ago
Darien Raymond ebea255c74
eliminate partial writes
6 years ago
Darien Raymond 4b63638dca
update protobuf lib
6 years ago
Darien Raymond 896db7c50c
offer an option to disable session resumption
6 years ago
Darien Raymond e3cc12995f
fix some lint errors
6 years ago
Darien Raymond 14dc6371d3
receive handshake address from tls conn
6 years ago
Darien Raymond 9a9b6f9077
fix concurrent access to tls config
6 years ago
Darien Raymond ffe18d94e4
update websocket reference
6 years ago
Darien Raymond 29ad2cbbdb
function to compare byte array
6 years ago
Darien Raymond f8e6927581
pool for data and ack segments
6 years ago
Darien Raymond bd4752a6ab
fix total inflight size
6 years ago
Darien Raymond a8b0660df0
redo kcp.SendingWindow
6 years ago
Darien Raymond bbeae5be48
redo kcp.ReceivingWindow
6 years ago
Darien Raymond 255090c5c0
fix dispatcher test
6 years ago
Darien Raymond e3cc852c57
udp dispatcher takes context with dispatching requests. fixes #1182.
6 years ago
Darien Raymond 6315217572
fix receiving window size
6 years ago
Darien Raymond ff0ae91b9b
update protobuf generated files
7 years ago
Darien Raymond 9977eadf8c
remove dependency from errors to session
7 years ago
Darien Raymond adade2bffd
fix lint warnings
7 years ago
Darien Raymond 9321210bcf
settings for allowing insecure cipher suites.
7 years ago
Darien Raymond 0e27fac290
fix race condition
7 years ago
Darien Raymond ac6a0f7511
update activity timer
7 years ago
Darien Raymond 67f5292f38
fix lint errors
7 years ago
Darien Raymond 5b4eef5c7b
fix dtls header
7 years ago
Darien Raymond 956c4f5bcf
update dtls.length logic
7 years ago
Darien Raymond f9277958a5
DTLS header for MKCP
7 years ago
Darien Raymond b24e808a8a
fix pipe related tests
7 years ago
Darien Raymond 213f827406
policy for internal buffer size
7 years ago
Darien Raymond 68da956fc4
re-generate code
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 c9e711374f
use websocket from vendor
7 years ago
Darien Raymond d7aeb51904
merge http.Connection into net.Connection
7 years ago
Darien Raymond a7103481d5
force http2 server to send back plain encoding.
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 10d7ed2e83
fix expired cert check
7 years ago
Darien Raymond a657ec49a0
comments
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 9d8922f523
close http2 server immediately. fixes #1051
7 years ago
Darien Raymond da0568d8d0
refine cert generation
7 years ago
Darien Raymond abee8bddf3
only try issuing new certificate when user provide custom CA
7 years ago
Darien Raymond ccafce3c9b
disable system roots for windows
7 years ago
Darien Raymond 2f74a5d048
disable domain socket for windows
7 years ago
Darien Raymond c76d492c0f
stats counter for inbound traffic
7 years ago
Darien Raymond 044c641d7b
test case for tls certs
7 years ago
Darien Raymond 318a36fe58
automatic issuing certificates from provided CA
7 years ago
Darien Raymond b7fc1f0bd6
scenario test for domain socket
7 years ago
Darien Raymond 38de82a5d3
don't release locker in abstract mode
7 years ago
Darien Raymond a320196b77
refine domain socket transport
7 years ago
Xiaokang Wang 00016e0517
Add comment
7 years ago
Shelikhoo 8e1507ae3a
Prevent unuseful test failure
7 years ago
Shelikhoo c542c043f3
Merge branch 'master' of github.com:v2ray/v2ray-core into domainsocket
7 years ago
Shelikhoo 4e609c9758
Added Test for dial
7 years ago
Shelikhoo d08929a687
finish up dial
7 years ago
Darien Raymond 4c2edeb18a
fix test break
7 years ago
Darien Raymond 009d58dd6c
remove static bytes array
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 f0862df9a7 fix typo
7 years ago
wuxiangzhou2010 5a08411ee2 fix typo
7 years ago
Darien Raymond f7dd7e6279
support stats counter in ray stream
7 years ago
Shelikhoo b67cd22b78
Test and bug fix
7 years ago
Darien Raymond 3ff570a050
write listen error to log
7 years ago
Darien Raymond 169b901c2d
lazy init of dialer map
7 years ago
Darien Raymond e647292b9a
protect against writing to closed body
7 years ago
Shelikhoo 09bf78a089
notify progressTraffic to quit
7 years ago
Shelikhoo 3b1f0ae300
finish transport listener
7 years ago
Shelikhoo 8e5063dedf
(Sync Commit)
7 years ago
Darien Raymond d1898b995f
remove unnecessary NewSize
7 years ago
Darien Raymond 994aecd13c
rename NewLocal to NewSize
7 years ago
Shelikhoo 43abfc9463
Unix listeners(sync commit)
7 years ago
Darien Raymond f17b865982
gofmt
7 years ago
DarienRaymond ff1e386a04
Merge pull request #931 from wuxiangzhou2010/master
7 years ago
Jinqiu Yu 794dfd5bf3 Dedup protocol registration
7 years ago
Ubuntu 7b28be596d fix typo
7 years ago
Darien Raymond e5d3783ed7
consume config in dialer and hub
7 years ago
Darien Raymond d207d953bd
h2 transport
7 years ago
Darien Raymond bdab1af29a
update tls config generation
7 years ago
Darien Raymond 58e79dbdc5
refactor kcp.ReadSegment
7 years ago
Darien Raymond 4783b8f2c6
stop doing anything after being released. fixes #804
7 years ago
Darien Raymond caa52e9327
early release buffers for better reusing
7 years ago
Darien Raymond 1e0cad50b1
buffered input in kcp client
7 years ago
Darien Raymond 6b872c266c
session id
7 years ago
Darien Raymond ae395bbe1f
increase udp hub capacity
7 years ago
Darien Raymond 7391b2439e
simplify udp hub
7 years ago
Darien Raymond d801be71ea
comments
7 years ago
Darien Raymond 94e930175a
update log
7 years ago
Shelikhoo 91f32cc8c4
Auto Gen
7 years ago
Shelikhoo 7f34cbdaff
Add Generated Files
7 years ago
Shelikhoo b9dddd0586
Added Dialer stub
7 years ago
Shelikhoo 8fe53261cc
Added function Stub
7 years ago
Shelikhoo a6612a2baa
Regenerate Pb
7 years ago
Shelikhoo 5a7c49f3bd
Added Generated error helper
7 years ago
Shelikhoo fdfa49dd1b
modify golang package name
7 years ago
Shelikhoo c3cdd908b7
fix and generate protobuf
7 years ago
Shelikhoo d845b4c3db
Created listener file
7 years ago
Shelikhoo 71c3e81a7e
Rebase: Add domainsocket receiver config
7 years ago
Shelikhoo d065e722a1
Added Additional Debug output and error message for #854
7 years ago
Darien Raymond ae52e325a2
send ack more frequently too
7 years ago
Darien Raymond 0a6a9547a0
fix kcp for not sending data immediately
7 years ago
Darien Raymond 278fd7261e
remove context in udp hub
7 years ago
Darien Raymond acc6ea3e6b
fix websocket test
7 years ago
Darien Raymond 9fdb783729
fix kcp test
7 years ago
Darien Raymond efcb567273
remove context in struct
7 years ago
Darien Raymond 3a0f211c22
gofmt
7 years ago
Darien Raymond 630a76d06a
kcp cleanup
7 years ago
Darien Raymond a6c0ef11ba
check connection state for every write operation
7 years ago
Darien Raymond ec54b04537
fix test break
7 years ago
Darien Raymond 292d7cc353
massive refactoring for interoperability
7 years ago
Darien Raymond c5d356545e
comments for typed messages
7 years ago
Darien Raymond 9ccdf67d2d
fix lint warnings
7 years ago
Darien Raymond 30f27706e0
Use 'h2' for ALPN in TCP
7 years ago
Darien Raymond 9b15e2f6f7
more informational logs
7 years ago
Darien Raymond 8a09c6c926
migrate to signal.Semaphore and Notifier
7 years ago
Darien Raymond f4c35db968
merge log into common log
7 years ago
Darien Raymond 054ceb865d
avoid port in-use error in websocket test
7 years ago
Darien Raymond 91ca88bcff
read original addr from x-forwarded-for header if present
7 years ago
Darien Raymond 3cc6d8f653
fix a data race in KCP
7 years ago
Darien Raymond 048ffbc7dc
simplify tls config
7 years ago
Darien Raymond 9561301fea
update headers test cases
7 years ago
Darien Raymond 80e43a6b37
reduce websocket memory usage
7 years ago
Darien Raymond 4fad49fef8
fix build break
7 years ago
Darien Raymond 2acef1cc07
cleanup kcp connection
7 years ago
Darien Raymond 0032760fdc
cleanup kcp connection
7 years ago
Darien Raymond 19a0d21cb6
fix kcp write
7 years ago
Darien Raymond 13ed4b8429
update http header test
7 years ago
Darien Raymond 7709ee9b7f
more interface test
7 years ago
Darien Raymond b3e6994e52
implement WriteMultiBuffer
7 years ago
Darien Raymond be714f76f1
cleanup
7 years ago
Darien Raymond bf7b8798a9
simplify kcp interface
7 years ago
Darien Raymond e8e7921613
fix lint warnings
7 years ago
Darien Raymond 443fd7c9a5
2k buffer should be enough
7 years ago
Darien Raymond 85a93e9602
cleanup kcp
7 years ago
Darien Raymond d43a23aa96
move error generator to common
7 years ago
Darien Raymond 9ff0dc7327
remove struct scoped context
7 years ago
Darien Raymond 2371617a22
fix lint warnings
7 years ago
IbarakiKasen c0564cd747 Fix typo, fix #715
7 years ago
Darien Raymond 51ddc00c70
reduce buffer size in websocket
7 years ago
Darien Raymond 0dbfb66126
clean up dns package
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 ac5ab67862 refactor
7 years ago
Darien Raymond 6c9a60100d format code
7 years ago
Darien Raymond 12a0d6e0b9 cleanup
7 years ago
DarienRaymond 1a8ed61b9b Merge pull request #651 from v2ray/udpfollow
7 years ago
Darien Raymond af88016320 fix #643
7 years ago
Darien Raymond 36ce56c524 refactor
7 years ago
Darien Raymond 3f54bf3f53 remove unused definitions
7 years ago
Darien Raymond e4fd29db70 fix test break
7 years ago
Darien Raymond 74cf833758 fully migrate to new assertion lib
7 years ago
Darien Raymond 9f7fbd9a04 fix websocket test
7 years ago
Darien Raymond 6dd23b45b0 fix lint warnings for websocket
7 years ago
Darien Raymond 2a04819582 fix data race in kcp connection
7 years ago
Darien Raymond 60f3562ac1 simplify websocket dialer and hub
7 years ago
Darien Raymond 669a0cafaf support header override in websocket
7 years ago
Darien Raymond b862365832 include detailed error
7 years ago
Darien Raymond 8971e699d9 common.Must2
7 years ago
Shelikhoo 8e846fe6f8
Added UDP TPROXY Transmit Support
7 years ago
Darien Raymond fbbed156db fix lint warnings
7 years ago
Darien Raymond 52ad41cda3 completely move away from net package
7 years ago
Darien Raymond 1c856a46ab step 1 to remove reference to net package
7 years ago
Darien Raymond a6403ea823 remove unnecessary files
7 years ago
Darien Raymond e6ebbc245c fix test break
7 years ago
Darien Raymond 5ef1a201f5 fix test break
7 years ago
Darien Raymond 2b9d9e1ae3 remove use of sysFd
7 years ago
Darien Raymond 896bff2195 update fd logic for golang 1.9
7 years ago
Darien Raymond 4059a965ff fix asm compiler warning
7 years ago
Darien Raymond 5829b45bbe
close timer faster
8 years ago
Darien Raymond 9594243ee2
fix system dialer init
8 years ago
Darien Raymond c5aa4acb35
prototype of vpndialer
8 years ago
Darien Raymond 2e756cdaa8
refactor
8 years ago
Darien Raymond b841042d0c
refactor
8 years ago
Darien Raymond 999717ee28
release buffer on error
8 years ago
Darien Raymond 39005d8fc4
refactor
8 years ago
Darien Raymond cea6e28634
refactor
8 years ago
Darien Raymond 6a90ce3c43
comments
8 years ago
Darien Raymond f01b0552a9
direct multibuf reading from kcp engine
8 years ago
Darien Raymond 114f390a69
cleanup
8 years ago
Darien Raymond 5f4acaa9ea
merging reader and writer
8 years ago
Darien Raymond 6d7aaa6535
bug fixes
8 years ago
Darien Raymond fccf0c2edb
fix linux test
8 years ago
Darien Raymond 09398989b6
fix mss calculation
8 years ago
Darien Raymond 83920a091e
WriteMultiBuffer for mKCP
8 years ago
Darien Raymond 69b51bffbb
implement write multi buffer in websocket
8 years ago
Darien Raymond c9eacc534a
fix test break
8 years ago
Darien Raymond ad996f4db8
remove hard type convertion on tcp config
8 years ago
Darien Raymond 47b155b77f
fix test break
8 years ago
Darien Raymond cee2fe4b6f
fix test break
8 years ago
Darien Raymond 64179350e6
fix test break
8 years ago
Darien Raymond 3cb60fac90
fix test break
8 years ago
Darien Raymond 40f890e638
fix getting sys fd
8 years ago
Darien Raymond b1dfff2fdd
remove 8k buffer pool
8 years ago
Darien Raymond f506a39d32
multi buffer
8 years ago
Darien Raymond 0ef9143ffd
refactor
8 years ago
Darien Raymond 94e01672d7
update error propagation
8 years ago
Darien Raymond f57260c358
refactor
8 years ago
Darien Raymond 68bc9ea8e4
cleanup error messages
8 years ago
Darien Raymond 7c1b3ac1f0
cleanup error messages
8 years ago
Darien Raymond 35248497d2
refactor error messages
8 years ago
Darien Raymond b943581e5b
gofmt
8 years ago
Darien Raymond a034276eee
update error messages
8 years ago
Darien Raymond ade8453c0a
completely remove connection reuse feature
8 years ago
Darien Raymond 954587cdc9
fix build for linux
8 years ago
Darien Raymond 2668954c12
update error messages
8 years ago
Darien Raymond 75f5cb9afb
refactor log and error
8 years ago
Darien Raymond fc31f9b94c
refactor error interface
8 years ago
Darien Raymond 2e5cb82790
update proto
8 years ago
Darien Raymond d627638412
refine error message
8 years ago
Darien Raymond 514dcffe2e
Fix a potential issue causing high CPU usage
8 years ago
Darien Raymond 6a640cf32d
refactor
8 years ago
Darien Raymond ec0986d6a9
remove useless code
8 years ago
Darien Raymond d2897633a6
comments
8 years ago
Darien Raymond f87b0fcde7
import updater effeciency
8 years ago
Darien Raymond d93ff628bc
refactor tcp worker
8 years ago
Darien Raymond 3152d7fec3
remove deprecated API
8 years ago
Darien Raymond 7792237b50
adopt context in listeners
8 years ago
Darien Raymond 9cbc9b7170
refactor dialer
8 years ago
Darien Raymond 2d83e260ac
refactor authenticators
8 years ago
Darien Raymond 52ed93408b
prevent double close in tcp hub
8 years ago
Darien Raymond e480091388
smart error propagation
8 years ago
Darien Raymond c220f9cb3e
sync for tcp hub
8 years ago
Darien Raymond 7a97d73737
fix race condition in transport
8 years ago
Darien Raymond ebed271a92
fix race conditions in kcp
8 years ago
Darien Raymond 949a74edfa
fix a nil reference issue in tls listener
8 years ago
Darien Raymond 38014efdee
refactor websocket
8 years ago
Darien Raymond 935620104d
refactor websocket
8 years ago
Darien Raymond 48eb40ff39
dice.RandomUint16
8 years ago
Darien Raymond 8d6a4d0a8a
Merge branch 'master' of https://github.com/v2ray/v2ray-core
8 years ago
Darien Raymond 9ca520893b
comments
8 years ago
Darien Raymond 520e3ea9e6
signal.semaphore
8 years ago
Darien Raymond 90200fbecb
remove signal.Once
8 years ago
Darien Raymond 48639ddb98
fix a bug in udp hub
8 years ago
Darien Raymond 5040817a7b
apply contex in udp hub
8 years ago
Darien Raymond 237ccf505c
Merge branch 'master' of https://github.com/v2ray/v2ray-core
8 years ago
Darien Raymond 5ccc915f8f
typo
8 years ago
Darien Raymond 6888093197
gofmt
8 years ago
Darien Raymond 2ba59428c9
remove lock in websocket connection
8 years ago
Darien Raymond cfcf16feed
fix typo
8 years ago
Darien Raymond 1aeab3dd96
normalized path in websocket
8 years ago
Darien Raymond 5e7fb6d0dd
refine error handling in retry logic
8 years ago
Darien Raymond d270a99d4f
simplify code
8 years ago
Darien Raymond 0d68293ef8
fix test break
8 years ago
Darien Raymond cdb0b94046
cleanup websocket code
8 years ago
Darien Raymond 5ec3fe093d
fix test break
8 years ago
Darien Raymond 3be6c72211
cleanup websocket code
8 years ago
Darien Raymond 6bcce77afb
fix import
8 years ago