mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-07-10 01:57:17 +03:00
Update sing-box core, refactor MASQUE, update XHTTP
This commit is contained in:
@@ -96,6 +96,7 @@ func (s *Service) Start(stage adapter.StartStage) error {
|
||||
|
||||
if s.hasTimerMode {
|
||||
s.adaptiveTimer = newAdaptiveTimer(s.logger, s.router, s.timerConfig)
|
||||
s.adaptiveTimer.start(false)
|
||||
if s.memoryLimit > 0 {
|
||||
s.logger.Info("started memory monitor with limit: ", s.memoryLimit/(1024*1024), " MiB")
|
||||
} else {
|
||||
@@ -164,7 +165,7 @@ func goMemoryPressureCallback(status C.ulong) {
|
||||
if isCritical {
|
||||
s.logger.Warn("memory pressure: ", level, ", usage: ", usage/(1024*1024), " MiB")
|
||||
if s.adaptiveTimer != nil {
|
||||
s.adaptiveTimer.startNow()
|
||||
s.adaptiveTimer.start(true)
|
||||
}
|
||||
} else if isWarning {
|
||||
s.logger.Warn("memory pressure: ", level, ", usage: ", usage/(1024*1024), " MiB")
|
||||
|
||||
Reference in New Issue
Block a user