Commit graph

11 commits

Author SHA1 Message Date
Alireza Ahmadi
6cdc7b25a2 v1.5.2
Some checks failed
Release S-UI / build-frontend (push) Has been cancelled
Build S-UI for Windows / build-frontend (push) Has been cancelled
Release S-UI / build-386 (push) Has been cancelled
Release S-UI / build-amd64 (push) Has been cancelled
Release S-UI / build-armv5 (push) Has been cancelled
Release S-UI / build-armv6 (push) Has been cancelled
Release S-UI / build-armv7 (push) Has been cancelled
Release S-UI / build-arm64 (push) Has been cancelled
Release S-UI / build-s390x (push) Has been cancelled
Build S-UI for Windows / build-windows-amd64 (push) Has been cancelled
Build S-UI for Windows / build-windows-arm64 (push) Has been cancelled
2026-07-03 00:35:13 +02:00
Alireza Ahmadi
b9ff0d9626 hashed panel password #1159 2026-07-03 00:31:59 +02:00
Alireza Ahmadi
b58de20ce4 fix certificate conflict #1153
Some checks are pending
Release S-UI / build-frontend (push) Waiting to run
Release S-UI / build-386 (push) Blocked by required conditions
Release S-UI / build-amd64 (push) Blocked by required conditions
Release S-UI / build-armv5 (push) Blocked by required conditions
Release S-UI / build-armv6 (push) Blocked by required conditions
Release S-UI / build-armv7 (push) Blocked by required conditions
Release S-UI / build-arm64 (push) Blocked by required conditions
Release S-UI / build-s390x (push) Blocked by required conditions
Build S-UI for Windows / build-frontend (push) Waiting to run
Build S-UI for Windows / build-windows-amd64 (push) Blocked by required conditions
Build S-UI for Windows / build-windows-arm64 (push) Blocked by required conditions
2026-06-29 22:00:30 +02:00
Alireza Ahmadi
af3b994f00 cli backup #1106 2026-06-26 22:42:15 +02:00
ayi21sui
855c269fb8 fix: SQLite connection leak causing unbounded memory growth
SaveStats returned tx.Create().Error directly without assigning to the
local err variable, so the deferred closure always saw err==nil and
called Commit() on a failed transaction. This left the underlying
go-sqlite3 connection unreturned to the pool. With StatsJob firing
every 10s, leaked connections accumulated ~150 KB each, reaching
400+ MB after ~33 hours.

Fixes:
- stats.go: assign Create result to err so defer can Rollback on failure
- backup.go: defer-close backupDb to prevent pool leak on early return
- migration/main.go: defer-close migration db
- db.go: add ConnMaxIdleTime(5m), lower MaxIdleConns to 2, set
  _cache_size=-200 to reduce per-connection memory from ~2 MB to ~200 KB

Measured: RSS dropped from 419 MB to 66 MB, db file descriptors from
4484 to 6, with zero growth over 3-minute observation window.
2026-05-07 12:30:59 +08:00
starry
7a4c010a45
Fetch IP address concurrently using multiple endpoints 2025-12-27 06:08:26 +08:00
Alireza Ahmadi
7751c8fce0 go package 2025-09-18 23:19:56 +02:00
Alireza Ahmadi
36938aee41 add migration for anytls config of clients 2025-06-07 01:32:58 +02:00
Alireza Ahmadi
df1a271efa migration to 1.3 with singbox 1.12 2025-06-06 02:23:00 +02:00
Alireza Ahmadi
9dd63f83da cmd show sing-box version #479 2025-02-15 22:02:58 +01:00
Alireza Ahmadi
7faa28a89d separate frontend repository 2025-01-29 00:08:36 +01:00