mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2024-11-16 11:42:43 +08:00
chore: Increase idle timeout and add keep alive period
This commit is contained in:
parent
c3035df5be
commit
6fc60edf75
|
@ -142,7 +142,8 @@ func (dc *quicClient) openConnection(ctx context.Context) (quic.Connection, erro
|
|||
ConnectionIDLength: 12,
|
||||
HandshakeIdleTimeout: time.Second * 8,
|
||||
MaxIncomingStreams: 4,
|
||||
MaxIdleTimeout: time.Second * 30,
|
||||
KeepAlivePeriod: 10 * time.Second,
|
||||
MaxIdleTimeout: time.Second * 120,
|
||||
}
|
||||
|
||||
log.Debugln("opening new connection to %s", dc.addr)
|
||||
|
|
Loading…
Reference in New Issue
Block a user