mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-05-06 04:08:40 +00:00
Use capsulate protocol for large UDP packet
- make datagram transport without mux functionality - it is now recommended to always pair with mux-cool (XUDP new tunnel non-zero session id)
This commit is contained in:
parent
358bdc258e
commit
129b2be9c1
4 changed files with 140 additions and 89 deletions
|
@ -33,12 +33,7 @@ func (l *Listener) keepAccepting(ctx context.Context) {
|
|||
time.Sleep(time.Second)
|
||||
continue
|
||||
}
|
||||
l.addConn(&interConn{
|
||||
ctx: ctx,
|
||||
quicConn: conn,
|
||||
local: conn.LocalAddr(),
|
||||
remote: conn.RemoteAddr(),
|
||||
})
|
||||
l.addConn(NewConnInitReader(ctx, conn, l.done, conn.RemoteAddr()))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -81,7 +76,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
|
|||
KeepAlivePeriod: 0,
|
||||
HandshakeIdleTimeout: time.Second * 8,
|
||||
MaxIdleTimeout: time.Second * 300,
|
||||
MaxIncomingStreams: 32,
|
||||
MaxIncomingStreams: 2,
|
||||
MaxIncomingUniStreams: -1,
|
||||
EnableDatagrams: true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue