mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-28 22:31:25 +03:00
Increase to 16 parallel streams
This commit is contained in:
parent
3d7ed5450b
commit
d218a5e8c5
@ -13,7 +13,7 @@ import (
|
|||||||
"github.com/xtls/xray-core/common/signal/done"
|
"github.com/xtls/xray-core/common/signal/done"
|
||||||
)
|
)
|
||||||
|
|
||||||
var MaxIncomingStreams = 2
|
var MaxIncomingStreams = 16
|
||||||
var currentStream = 0
|
var currentStream = 0
|
||||||
|
|
||||||
type interConn struct {
|
type interConn struct {
|
||||||
|
@ -76,7 +76,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
|
|||||||
KeepAlivePeriod: 0,
|
KeepAlivePeriod: 0,
|
||||||
HandshakeIdleTimeout: time.Second * 8,
|
HandshakeIdleTimeout: time.Second * 8,
|
||||||
MaxIdleTimeout: time.Second * 300,
|
MaxIdleTimeout: time.Second * 300,
|
||||||
MaxIncomingStreams: 2,
|
MaxIncomingStreams: 16,
|
||||||
MaxIncomingUniStreams: -1,
|
MaxIncomingUniStreams: -1,
|
||||||
EnableDatagrams: true,
|
EnableDatagrams: true,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user