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
Alireza Ahmadi
d21993804c
fix tracker nil porinter #1057
2026-03-22 19:10:59 +01:00
Alireza Ahmadi
9d35e02e0e
fix db WAL memory leak #1056
2026-03-22 19:08:31 +01:00
Alireza Ahmadi
1ef0ffa60e
fix reset core conflict
2026-03-11 23:48:54 +01:00
Alireza Ahmadi
6ba547331e
[feat] delayStart and autoReset #718
2026-03-08 23:18:08 +01:00
Alireza Ahmadi
f4e08c8ae3
downsampling for traffic chart #987
2026-03-08 01:50:49 +01:00
Alireza Ahmadi
4424565da4
bulk edit-delete #636 #1035
2026-03-08 01:23:07 +01:00
Alireza Ahmadi
93dd02f53e
better restart error handling by 15s wait
2026-03-07 14:39:55 +01:00
Seva
a721c85955
Bugfix: User can't change DNS Invaild Settings ( #1042 )
...
* Fix core restart panic on invalid DNS config
* Avoid nil instance race after core stop
2026-03-07 11:34:33 +01:00
Alireza Ahmadi
13d475da20
fix crash on restart due to change #1030
2026-02-28 01:52:34 +01:00
Alireza Ahmadi
dd07abf501
fix inbound delete affects on client #1008
2026-02-17 20:08:03 +01:00
Alireza Ahmadi
688e0c3e23
add api checkOutbound #761
2026-02-11 21:52:31 +01:00
Alireza Ahmadi
4ce3647670
db status data for first page
2026-02-09 00:51:31 +01:00
Alireza Ahmadi
90976cded1
fix dblock on failure #964
2026-02-08 21:19:28 +01:00
Alireza Ahmadi
7751c8fce0
go package
2025-09-18 23:19:56 +02:00
Alireza Ahmadi
abc73a6525
fix external link on tls change
2025-09-12 00:19:51 +02:00
Alireza Ahmadi
6aba1354d5
fix client api error handling #781
2025-09-04 19:56:56 +02:00
Alireza Ahmadi
560c41acbe
disable traffic charts if set to zero
2025-08-30 02:11:43 +02:00
Alireza Ahmadi
123813dc90
fix build for windows
2025-08-21 03:47:37 +02:00
Alireza Ahmadi
282a24b8fc
add sniff in default routing rule #708
2025-08-07 00:16:58 +02:00
Alireza Ahmadi
e883a8e153
separate trackers, fix #695
2025-08-04 13:35:49 +02:00
Alireza Ahmadi
13990b68d2
fix default dns config
2025-07-31 11:09:12 +02:00
Alireza Ahmadi
dd7e81c557
close connection on restart inbound #684
...
Using new tracker
2025-07-30 12:20:25 +02:00
Alireza Ahmadi
cd3d4e6451
fix add bulk client
2025-07-24 15:11:50 +02:00
Alireza Ahmadi
c2d33d2a1e
revert back to normal restart inbounds
2025-07-18 19:47:29 +02:00
Alireza Ahmadi
fe4fa9b9e6
fix client links #670 #671
2025-07-18 19:45:55 +02:00
Alireza Ahmadi
d2827d013b
improve client's inbound changes
2025-07-13 12:29:21 +02:00
Alireza Ahmadi
92c742987e
fix old link removal on inbound tag change #633
2025-06-13 00:57:45 +02:00
Alireza Ahmadi
4dabe656c9
disk and swap info #341
2025-06-11 03:26:48 +02:00
Alireza Ahmadi
d186875ab7
clash - stash subscription #373
2025-06-01 23:50:45 +02:00
Alireza Ahmadi
73cf4d5b7e
new protocol anytls
2025-05-29 21:51:20 +02:00
Alireza Ahmadi
1991091444
small enhancement on managed shadowsocks detection
2025-05-29 21:50:30 +02:00
Alireza Ahmadi
118baf12df
shadowsocks manageable
2025-05-28 23:00:40 +02:00
Alireza Ahmadi
fc410c9a8d
update new features service-dns
2025-05-28 23:00:19 +02:00
Alireza Ahmadi
d873c86ef8
remove ech pqs
2025-05-27 22:00:58 +02:00
Alireza Ahmadi
354378e038
fix ss-tls init users #530
2025-05-27 22:00:58 +02:00
Alireza Ahmadi
0a08e9f834
fix init users and naive #553
2025-05-27 22:00:58 +02:00
Alireza Ahmadi
6ad2a7af70
only allow shadowsocks multi-user #489
2025-02-22 12:43:11 +01:00
Alireza Ahmadi
1c0c5f61c6
warp code enhancement
2025-02-15 22:31:13 +01:00
Alireza Ahmadi
a1e9ef00a1
fix vlass flow #474
2025-02-15 21:29:20 +01:00
Alireza Ahmadi
1c4a927e0d
small fixes and typos
2025-02-09 00:56:13 +01:00
Alireza Ahmadi
1ac7bce6b4
new api with token
2025-02-02 21:46:36 +01:00
Alireza Ahmadi
7faa28a89d
separate frontend repository
2025-01-29 00:08:36 +01:00