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";