mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-01-08 10:45:04 +02:00
Vips leak checking
This commit is contained in:
parent
c72c86a921
commit
f1c2bfa6a6
@ -93,8 +93,11 @@ func initVips() {
|
||||
C.vips_cache_set_max_mem(100 * 1024 * 1024) // 100Mb
|
||||
C.vips_cache_set_max(500)
|
||||
|
||||
if len(os.Getenv("IMGPROXY_DEBUG_VIPS")) > 0 {
|
||||
C.vips_cache_set_dump(C.gboolean(1))
|
||||
if len(os.Getenv("IMGPROXY_VIPS_LEAK_CHECK")) > 0 {
|
||||
C.vips_leak_set(C.gboolean(1))
|
||||
}
|
||||
|
||||
if len(os.Getenv("IMGPROXY_VIPS_CACHE_TRACE")) > 0 {
|
||||
C.vips_cache_set_trace(C.gboolean(1))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user