From e32756ea6cee7ca4c7beb0301ebe0474847e353b Mon Sep 17 00:00:00 2001 From: Emily Stolfo Date: Fri, 13 Dec 2024 17:08:34 +0100 Subject: [PATCH] Don't close gzipwriter in a finalizer --- lib/elastic_apm/transport/connection/proxy_pipe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/elastic_apm/transport/connection/proxy_pipe.rb b/lib/elastic_apm/transport/connection/proxy_pipe.rb index d4a504238..77781fd25 100644 --- a/lib/elastic_apm/transport/connection/proxy_pipe.rb +++ b/lib/elastic_apm/transport/connection/proxy_pipe.rb @@ -48,7 +48,7 @@ def initialize(io, compress: true) return unless compress enable_compression! - ObjectSpace.define_finalizer(self, self.class.finalize(@io)) + #ObjectSpace.define_finalizer(self, self.class.finalize(@io)) end def self.finalize(io)