Skip to content

Commit d64e480

Browse files
committed
intra/tun2socks: 512mib gomemlimit
1 parent 2a47634 commit d64e480

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

intra/tun2socks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var csetup atomic.Bool
7575
func init() {
7676
// increase garbage collection frequency: archive.is/WQBf7
7777
debug.SetGCPercent(50)
78-
debug.SetMemoryLimit(maxMemLimit)
78+
debug.SetMemoryLimit(maxMemLimit / 2)
7979
debug.SetPanicOnFault(true)
8080

8181
/*

0 commit comments

Comments
 (0)