mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 12:34:21 +00:00
`TCPSocket.new` with HEv2 uses three threads. The last of these threads to exit closed pipes. However, if pipes were open at the end of the main thread, they would leak. This change avoids this by closing pipes at the end of the main thread.