Commit Graph

638 Commits (064d7249f5cf8c09c0cb9b7e3978cc56295cc8ab)

Author SHA1 Message Date
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
Darien Raymond 2cf44393fb
increase ray buffer size
8 years ago
Darien Raymond 1186b0e733
fix label name
8 years ago
Darien Raymond a53808c83b
fix link
8 years ago
Darien Raymond fa0011c4c9
fix build break
8 years ago
Darien Raymond eb877fa808
remove unnecessary import
8 years ago
Darien Raymond 3ffef74d75
allocate in advance
8 years ago
Darien Raymond 8b07c39281
update default kcp bandwidth settings
8 years ago
Darien Raymond 31fbb62d0f
add back flush timeout
8 years ago
Darien Raymond 3be9519ed4
send more ack seg
8 years ago
Darien Raymond 2dc74faf19
send more ack numbers if not full
8 years ago
Darien Raymond 5ffabe1148
reduce time spent on kcp test
8 years ago
Darien Raymond f95c322677
rename 'this'
8 years ago
Darien Raymond d00f8eef56
remove use of 'v' as a variable name
8 years ago
Darien Raymond b1f78a1ffc
enable conn reuse settings in mkcp
8 years ago
Darien Raymond d19ee4d408
connection reuse for mkcp
8 years ago
Darien Raymond b2e084c78c
recycler interface
8 years ago
Darien Raymond 22379e5a6b
refactor connection pool
8 years ago
Darien Raymond e8cde53975
fix tcp log
8 years ago
Darien Raymond e0116d3957
fix http read
8 years ago
Darien Raymond 15cb543abb
release memory in kcp connection
8 years ago
Darien Raymond 70c75038a2
small buffer
8 years ago
Darien Raymond 30cd9e929d
add exponential backoff as retry logic
8 years ago
Darien Raymond d6086e0e9b
remove buggy test case
8 years ago
Darien Raymond f64c79e239
log
8 years ago
Darien Raymond 2078f29142
refine error message
8 years ago
Darien Raymond ac2f62b239
reduce memory footprint in kcp
8 years ago
Darien Raymond ed780951aa
save some goroutines
8 years ago
Darien Raymond 292176c57f
simplify udp payload queue
8 years ago
Darien Raymond 1a1383c2ea
simplify random
8 years ago
Darien Raymond a14795e1e6
optimize udp hub
8 years ago
Darien Raymond 4ee758c4d2
simplify kcp logic
8 years ago
Darien Raymond ad3f450bce
fix usage of io.EOF
8 years ago
Darien Raymond e72f8a26c8
min timeout
8 years ago
Darien Raymond 0cd9f5165f
update kcp sending worker
8 years ago
Darien Raymond 9471b5b066
refine dispatcher
8 years ago
Darien Raymond 5dc05d6352
allow outbound to be proxied
8 years ago
Darien Raymond d343cb1ee6
proxy connection
8 years ago
Darien Raymond 7a09fcdc2f
increase kcp ack frequency
8 years ago
Darien Raymond b0d009664a
Fix HTTP serialization
8 years ago
Darien Raymond dc0cbce6e1
optimize pickString
8 years ago
Darien Raymond 66e8090d3a
update http header
8 years ago
Darien Raymond f108633e2e
ssr compatibility
8 years ago
Darien Raymond 13dde1799d
comments
8 years ago
Darien Raymond bae0de7d95
test case for http auth
8 years ago
Darien Raymond 010f34c76c
allow single side auth
8 years ago
Darien Raymond 0747203132
refine http header
8 years ago
Darien Raymond aabb9137e1
remove unused code
8 years ago
Darien Raymond 33d2513e3c
reduce memory allocation in kcp
8 years ago
Darien Raymond 5b58066345
use local buffer in UDP hub
8 years ago
Darien Raymond d3f323e24b
response factory
8 years ago
Darien Raymond 187688cacb
fix type def
8 years ago
Darien Raymond 72339a3509
fix TCP conn reuse with tls
8 years ago
Darien Raymond ac3b91a877
http authenticator
8 years ago
Darien Raymond 97dc7b30de
remove test cases depending on external resources
8 years ago
Darien Raymond e13c97d162
rename IP to CIDR in router
8 years ago
Darien Raymond 2320bc3304
remove unused code
8 years ago
Darien Raymond 751a105324
comments
8 years ago
Darien Raymond b81d091fb8
comments
8 years ago
Darien Raymond 9bd8822668
unused proto
8 years ago
Darien Raymond 5a311cbe08
json config parser
8 years ago
Darien Raymond e33b7df34c
remove use of any
8 years ago
Darien Raymond be026870f7
protogen update
8 years ago
Darien Raymond f488a63d97
check nil config
8 years ago
Darien Raymond d26ee5441e
fix authenticator config
8 years ago
Darien Raymond ab3173039b
increase ping interval
8 years ago
Darien Raymond b5910dccae
simplify fast resend
8 years ago
Darien Raymond f8ad1f4a3e
update predicate syntax
8 years ago
Darien Raymond da9f1a8013
predicate.Not
8 years ago
Darien Raymond f3a83c57ab
optimize ping and updater logic
8 years ago
Darien Raymond 78f87c4f60
test case for cmd only segment
8 years ago
Darien Raymond e023859ef0
stop data updating thread when there is no data
8 years ago
Darien Raymond 67793eb3e0
fix config creator cache
8 years ago
Darien Raymond 1d13f47f9c
protobuf for stream settings
8 years ago
Darien Raymond 5ec948f690
integrate tls settings in ws
8 years ago
Darien Raymond af6abfa3e3
update proto generated code
8 years ago
Darien Raymond 91f2a40dae
refine proto package names
8 years ago
Darien Raymond dc6b7e2e75
protobuf for blackhole config
8 years ago
Darien Raymond b28d718b79
optional field in kcp config
8 years ago
Darien Raymond 1a3f51ade7
protobuf for kcp config
8 years ago
Darien Raymond 8f6a972970
refactor config cache
8 years ago
Darien Raymond 7de7588ec2
proto for destination
8 years ago
Darien Raymond c518726910
network proto
8 years ago
Darien Raymond fbdb1e09d7
remove incorrect check on config name
8 years ago
Darien Raymond 9ade07db03
remove IsTCP() and IsUDP()
8 years ago
Darien Raymond 5f5d28009f
fix typo in utp def
8 years ago
Darien Raymond 04d956462c
fix test without -json tag
8 years ago
Darien Raymond 3fd66ad795
remove PingNecessary()
8 years ago
Darien Raymond e49fb2f50d
no compacting buffers
8 years ago
Darien Raymond fcad4aa212
adjust receiving buffer size
8 years ago
Darien Raymond 0da987ec43
refine buffer size
8 years ago
Darien Raymond 2ae8e5d033
rename buffer size
8 years ago
Darien Raymond 2839ce7a88
simplify receiving worker
8 years ago
Darien Raymond 5d20e3f70b
remove sending queue
8 years ago
Darien Raymond e6e0419958
format private annotation
8 years ago
Darien Raymond a9da266bf9
update default in-fligh size
8 years ago
Darien Raymond 98025e1457
change default kcp.tti to 50
8 years ago
v2ray 07a86f549b
unified import path
8 years ago
v2ray d08ffedf48
reduce ping frequency
8 years ago
v2ray d83a0ce5d2
Apply new read function to UDP hub.
8 years ago
v2ray 55e5268ce8
Fix UDP reading on Windows
8 years ago
v2ray ad1353ac2f
merge similar error definitions
8 years ago
v2ray d9884b4010
format import
8 years ago
v2ray 8ecec9b49d
format log
8 years ago
v2ray bb3ceb3d7b
simplify case
8 years ago
v2ray 41d89e6d1e
skip test requires root permission
8 years ago
v2ray 9876844296
fix test break
8 years ago
v2ray 6417adb56d
correctly get sys fd from udp conn
8 years ago
v2ray 0bca6e8657
fix kcp listener
8 years ago
v2ray a5a70afdb8
remove port testing
8 years ago
v2ray 338dc1ebb6
remove unused deps
8 years ago
v2ray c7871a3ab2
test case for socket opt
8 years ago
v2ray 2a778762b1
rename udp.go to hub.go
8 years ago
Darien Raymond 667b71aad0 Merge pull request #238 from xiaokangwang/websocket
8 years ago
v2ray 210a32dc12
support udp redirection
8 years ago
Shelikhoo 22519353c3
Check Read
8 years ago
Shelikhoo 32e8deb6e8
Simplify Design
8 years ago
Shelikhoo 45d801b922
WsTest:more case
8 years ago
Shelikhoo 6c8b4f5db3
Fix
8 years ago
Shelikhoo d7440bb1d6
Test:listen tls
8 years ago
Shelikhoo 856f2a2dd3
Fix assert fail
8 years ago
Shelikhoo f7ce9d3be6
Add Developer Insecure Skip Verify for testing
8 years ago
Shelikhoo 02e3c17c97
test:listen
8 years ago
Shelikhoo 40ec84e222
Dial test
8 years ago
Shelikhoo 2209294dfc
Set reuse limit
8 years ago
Shelikhoo 0a49628555
Bettering ping method
8 years ago
Shelikhoo e382eaa59f
typo
8 years ago
Shelikhoo 4c093a2107
Apply coding style
8 years ago
Shelikhoo a5ae6a0f4e
Remove workaround
8 years ago
Shelikhoo bfb4e0d9b0
Apply coding style
8 years ago
Shelikhoo 273c8f6c57
Support Stop listener
8 years ago
Shelikhoo 062d05fdcf
Added Stoppable listener for TLS listener
8 years ago
Shelikhoo c8cd1320c7
Use stopable listener for HTTP
8 years ago
Shelikhoo a36582b294
Added stopable listener
8 years ago
Shelikhoo 863237b518
Justify lock use
8 years ago
Shelikhoo 4853a1a6d3
Increase ping time
8 years ago
Shelikhoo de28198234
Guess protocol
8 years ago
Shelikhoo 7b3cf631c2
Removed inaccessable doc
8 years ago
Shelikhoo ee22082fb4
Fix host bug
8 years ago
Shelikhoo 00aeb29e46
typo
8 years ago
Shelikhoo 2bf9edfe7d
Prevent unnesessary log
8 years ago
Shelikhoo d250013c99
Increase conn keep-alive time
8 years ago
Shelikhoo d06c75f926
Doc sync to code change
8 years ago
Shelikhoo 7259b3363b
Merge branch 'master' into websockwt
8 years ago
v2ray 4419f1e3d6
introduce address family in v2net
8 years ago
v2ray a9d583b92f
connection session
8 years ago
Shelikhoo fed2933043
fix crash
8 years ago
Shelikhoo 5e576e11bb
fix crash
8 years ago
Shelikhoo 49441a5050
Docs
8 years ago
Shelikhoo a0fda39274
Fix crash
8 years ago
Shelikhoo 3e9e9b520e
Remove useless test
8 years ago
Shelikhoo 1fe090dbfd
Verfiy Domain correctly
8 years ago
Shelikhoo 427bed5ddb
typo~
8 years ago
Shelikhoo 16b529093d
Support Listen WebSocket with TLS
8 years ago
Shelikhoo fecf9cc5b8
Added WebSocket transport
8 years ago
Shelikhoo 7ef66c57dc
Support Listen WebSocket Connection
8 years ago
Shelikhoo 29f69d63c4
Support Dial WebSocket Connection
8 years ago
Shelikhoo 20f16309e6
Load Websocket Streamtype from json
8 years ago
Shelikhoo 0d60d2449a
Add Websocket Stream type
8 years ago
Shelikhoo 2eced2bd6c
Load Configure from json
8 years ago
Shelikhoo 8c4a6d94f9
WS Conf structure
8 years ago
v2ray bcd27ba36f
option to allow passive connection
8 years ago
v2ray f03c86f468
global session cache
8 years ago
v2ray b01a972076
test for all authenticators
8 years ago
v2ray b38137bd13
utp header
8 years ago
v2ray 86490e884c
return pointer of config
8 years ago
v2ray 75b8dd9521
error message refactoring
8 years ago
v2ray 81855469aa
rename SRTP
8 years ago
v2ray 4a7400ef2a
test case for srtp
8 years ago
v2ray 2f0d602833
nil pointer protection
8 years ago
v2ray 0caf2e6d30
compact kcp stream
8 years ago
v2ray 6678da2fe2
more no-op authenticator into a separate folder
8 years ago
v2ray 8d6a9167b5
add no-op authenticator
8 years ago
v2ray c7d6302292
load srtp in main
8 years ago
v2ray 6ffc24f895
update roundtripinfo
8 years ago
v2ray 0d73726930
srtp header for kcp
8 years ago
v2ray a15e33f720
rename RoundTripInfo
8 years ago
v2ray 00841583d2
reduce ack packet size and send peer RTO
8 years ago
v2ray 7f277c9bcc
prevent goroutine leak
8 years ago
v2ray 6fa84624cb
simplify logic
8 years ago
v2ray 53cdcfdc2b
remove unnecessary goroutine
8 years ago
v2ray b8421f659f
terminate connection
8 years ago
v2ray 7385c05f29
more test case for buffer
8 years ago
v2ray 42efa5dde0
refine buffer usage in kcp
8 years ago
v2ray 6fe7463bf4
simplify state checking
8 years ago
v2ray 347ae8fd75
simplify interface
8 years ago
v2ray ca0ae50e62
refine system dialer substitution
8 years ago
Shelikhoo d1b44619b0
Solve #218: Supporting substitute of the default Dialer, this is a prerequisite of Libv2ray's support of Android VPNService mode; It is not recommanded to modify exported func introduced by this commit.
8 years ago
v2ray 85d6e1ad13
prepend hash
8 years ago
v2ray 1931820c4c
leverage local buffer
8 years ago
v2ray a39132f4c2
update log
8 years ago
v2ray bf2d45a83d
use local buffer when fetching input
8 years ago
v2ray 066e5e216d
fill windows after processing acks
8 years ago
v2ray 72ee6436eb
more accurate of rtt calculation
8 years ago
v2ray d5cd919cec
remove duplicated code
8 years ago
v2ray f6d4e599bd
configurable read and write buffer size
8 years ago
v2ray 631db6e69a
rename
8 years ago
v2ray ef2d49302d
rename command
8 years ago
v2ray ffdce592ec
remove sync.Pool from segment allocation
8 years ago
v2ray 906d846c2e
update test case
8 years ago
v2ray c32f1a0152
update test case
8 years ago
v2ray 991b2703dc
improve writing performance
8 years ago
v2ray 0acd3b6d62
improve sending performance
8 years ago
v2ray 476b3c68d2
introduce a new state: peer terminating
8 years ago
v2ray 05ed05b9a0
correctly release segments
8 years ago
v2ray 73afe9a001
use alloc.Buffer in sending queue
8 years ago
v2ray c7b0264f9a
lock in udp hub
8 years ago
v2ray d602025908
update test performance
8 years ago
v2ray c0a1198514
improve terminating performance
8 years ago
v2ray 9a44ff3145
static conv
8 years ago
v2ray 9434f5156c
fix memory leak
8 years ago
v2ray 205f8b382d
Fix race condition
8 years ago
v2ray 94d4b02191
non blocking flusing
8 years ago
v2ray b68075a99d
test case for kcp read write
8 years ago
v2ray 4c63e9e168
improve fetch performance
8 years ago
v2ray f7d54d57c4
remove lastpayloadtime
8 years ago
v2ray b50671f041
fix a bug in process ack
8 years ago
v2ray 63390786ed
test case for read timeout
8 years ago
v2ray a88a120938
Fix deadlock in kcp.read
8 years ago
v2ray 12d13f1560
refine log in KCP
9 years ago
v2ray 636effbe38
more accurate source id
9 years ago
v2ray 5e7d413404
allow insecure connections
9 years ago
v2ray be81d246f2
rename json fields
9 years ago
v2ray 754e8b6e78
tls config
9 years ago
v2ray 1e3ebeef59
reduce buffer size
9 years ago
v2ray 56ce062154
refine connection.read
9 years ago
v2ray a615afc906
refine locks in sending worker
9 years ago
v2ray 5448ec1fe4
refine locker in sending worker
9 years ago
v2ray 78ef65e17b
refine locker in kcp connection
9 years ago
v2ray e44b374e66
merge kcp into connection
9 years ago
v2ray 344e48e1bb
completely remove itimediff
9 years ago
v2ray 16d1b42f59
refine seg allocation
9 years ago
v2ray 6efff7654c
leverage pool functions
9 years ago
v2ray 34fb72e7c6
refine ack seg put
9 years ago
v2ray 13e83c17a5
apply sync.Pool to segments
9 years ago