Commit Graph

872 Commits (41956e92a53c37a861c53a67aa82449b9b9aa258)

Author SHA1 Message Date
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 94bba49674 fix lint warnings
7 years ago
Darien Raymond 62258e6aef fix #638
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 5ae8bfbda1 fix data race in ray
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 b16a82024c
normalized env variable names for bash
8 years ago
Darien Raymond 479c22c17d
lower default buffer size to 10M
8 years ago
Darien Raymond c6a68755b6
lint
8 years ago
Darien Raymond ad35fc7028
split read and write signal
8 years ago
Darien Raymond 642a630912
default buffer limit in ray stream to 20MB
8 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 c9c2338f05
refactor
8 years ago
Darien Raymond 2c3ed5d9e4
snifered dispatch
8 years ago
Darien Raymond 77521029b1
support for http and tls header sniffing
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 027270fd2c
cleanup
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 57a353e92f
return EOF on context done
8 years ago
Darien Raymond 2f565bfd5e
simplify ray stream
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 d792faff70
fix interface
8 years ago
Darien Raymond 14824c8451
fix timeout reader usage
8 years ago
Darien Raymond 8ce6e741f1
Merge branch 'master' of https://github.com/v2ray/v2ray-core
8 years ago
Darien Raymond cb0e29ccdb
merging reader
8 years ago
Darien Raymond bb4daedd4c
allow 0 timeout
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
Darien Raymond d72029211f
completely remove allow passive connection
8 years ago
Darien Raymond 3643dc37e0
refine kcp output
8 years ago
Darien Raymond ce34a25e66
fix build break
8 years ago
Darien Raymond e665de182d
dispatcher test
8 years ago
Darien Raymond 9978cf07e6
fix udp dispatcher
8 years ago
Darien Raymond b5d14b6823
update java options
8 years ago
Darien Raymond c4d0227977
simplify dialer and dispatcher parameters
8 years ago
Darien Raymond f046f334cd
move common/log to app/log
8 years ago
Darien Raymond 9139a87865
closw conn in the same routine
8 years ago
Darien Raymond 18e1ca85aa
rename udp.Server
8 years ago
Darien Raymond 55fb18b6e1
reduce websocket buffer size
8 years ago
Darien Raymond ea728d5112
update
8 years ago
Darien Raymond fcd34014bb
fix java class name
8 years ago
Darien Raymond d2764d8776
fix test break
8 years ago
Darien Raymond ca721230e1
split listening settings from inbound proxies and apply context
8 years ago
Darien Raymond 6eff0acc0b
rename transportsettings to transportconfig
8 years ago
Darien Raymond 8b00d6fc30
clean imports
8 years ago
Darien Raymond 0a91893a26
handle IPv6 address in tproxy
8 years ago
Darien Raymond f7e1f00c88
rename dispatcher.Interface
8 years ago
Darien Raymond 289c467a12
remove unnecessary code
8 years ago
Darien Raymond db1c9131f0
global config creator
8 years ago
Darien Raymond d4c471c967
generate TLS certificate on the fly
8 years ago
Darien Raymond d24fe9dbfb
separate network and transport protocol
8 years ago
Darien Raymond 3a8eef2dec
don't do normal close in error case
8 years ago
Darien Raymond 72992c7478
able to close ray stream with error
8 years ago
Darien Raymond f75d94817a
fix #356
8 years ago
Darien Raymond 43cc81e5a8
better locking in udp server
8 years ago
Darien Raymond 5e7e549ec1
comments
8 years ago
Darien Raymond a8e274f4c4
remove unused code
8 years ago
Darien Raymond f7721029c7
fix #355
8 years ago
Darien Raymond 4afad8d31c
simpify websocket connection
8 years ago
Darien Raymond 5684beed8c
fix websocket conn reuse
8 years ago
Darien Raymond e35e271708
cleanup internet connection
8 years ago
Darien Raymond e678000c44
remove release() pattern
8 years ago
Darien Raymond 49210d8362
refine stream handling
8 years ago
Darien Raymond 723207158f
Merge branch 'master' of https://github.com/v2ray/v2ray-core
8 years ago
Darien Raymond aefa53f827
refine http header
8 years ago
Darien Raymond 588c43f291
kcp header as wechat video
8 years ago
Darien Raymond 21a15bbf74
registerable dialer and listener
8 years ago
Darien Raymond 31d6e74482
remove rawtcp
8 years ago
Darien Raymond c9a421fba6
remove generate package comments in .pb.go files.
8 years ago
Darien Raymond 20fe6d10a4
rollback gitignore change
8 years ago
Darien Raymond 52e1dfaeac
remove all generated files
8 years ago
Darien Raymond 19e0cb40e9
locker protected connection
8 years ago
Darien Raymond 48bddb25d7
fix lint warnings
8 years ago
Darien Raymond 58ae7e4967
refine proto settings
8 years ago
Darien Raymond 2a52ae9e96
default next protos
8 years ago
Darien Raymond 3cc0783d9c
fix test break
8 years ago
Darien Raymond a44d556667
test case for tls connection
8 years ago
Darien Raymond f6aa7a0053
fix usage of ray stream.
8 years ago
Darien Raymond 609dbc1f13
task engine for all proxies
8 years ago
Darien Raymond f7379bc1c3
skip empty payload in ray
8 years ago
Darien Raymond 38e4cad8d1
remove unused variable
8 years ago
Darien Raymond 29d62185cf
notify read and write on remote close
8 years ago
Darien Raymond 620561bcaf
remove recover on stream write
8 years ago
Darien Raymond f1a9647c8a
lint warnings
8 years ago
Darien Raymond 4e224d64c6
Fix #337
8 years ago
Darien Raymond a4dfca0ef7
accommodate protobuf compiler change
8 years ago
Darien Raymond 7dc7937443
rename ws to websocket
8 years ago
Darien Raymond eb782436b3
proto option for C# namespace
8 years ago
Darien Raymond 06c92e492d
fix ray stream
8 years ago
Darien Raymond c3942fd5f0
fix lint warnings
8 years ago
Darien Raymond ceaf5d1178
fix lint warnings
8 years ago
Darien Raymond cdcccb4590
simplify segment writer
8 years ago
Darien Raymond bccf11c12c
fix tls over kcp
8 years ago
Darien Raymond 0f0f01ddf6
return error when header too long
8 years ago
Darien Raymond 68164d46f9
limit max http header length
8 years ago
Darien Raymond b17f06bb4e
test case for http header
8 years ago
Darien Raymond 50bc195f7f
rename TypedSettings to TypedMessage
8 years ago
Darien Raymond d6a6e0aaf8
send back http response on error
8 years ago
Darien Raymond 42417cab17
fix compile warning
8 years ago
Darien Raymond a67d525fc2
try fix connection reuse settings
8 years ago
Darien Raymond a11d2ce9d6
support server name override
8 years ago
Darien Raymond eee23e6718
fix api usage
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
Darien Raymond a3cb770f77
clean up errors
8 years ago
Darien Raymond 41fcffbfab
fix data input and output signal
8 years ago
Darien Raymond 40249dfacb
change API
8 years ago
Darien Raymond 30d886fd6f
refresh protobuf
8 years ago
Darien Raymond 41258f19fc
comments
8 years ago
Darien Raymond 1431e32d01
comments
8 years ago
Darien Raymond 0917866f38
refine kcp header and security
8 years ago
Darien Raymond d716d02cd8
correctly handle sending window length
8 years ago
Darien Raymond 8c8f0a53fd
rewrite alloc.buffer
8 years ago
Darien Raymond 4bf8288cc2
remove use of Buffer.Value
8 years ago
Darien Raymond e46bad3f18
format errors
8 years ago
Darien Raymond efb24a4d21
rewrite error lib
8 years ago
Darien Raymond a4019a6900
fast return on zero ack list
8 years ago
Darien Raymond 207c7aa8a7
flush acklist when dirty
8 years ago
Darien Raymond 60697e4e4f
fix test break
8 years ago