From 6bda9cca3e56c5172e016511c8804f36730cc677 Mon Sep 17 00:00:00 2001 From: Rudy Ges Date: Fri, 19 Apr 2024 10:08:35 +0200 Subject: [PATCH] [eval] run GC while downloading --- std/sys/Http.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/std/sys/Http.hx b/std/sys/Http.hx index d610b479c58..dcb761b9a8a 100644 --- a/std/sys/Http.hx +++ b/std/sys/Http.hx @@ -447,6 +447,9 @@ class Http extends haxe.http.HttpBase { var len = sock.input.readBytes(buf, 0, if (size > bufsize) bufsize else size); api.writeBytes(buf, 0, len); size -= len; + + // TODO: this shouldn't be needed on "user" code + #if eval eval.vm.Gc.minor(); #end } } catch (e:haxe.io.Eof) { throw "Transfer aborted";