Skip to content

Instantly share code, notes, and snippets.

# Repro case of https://bugs.ruby-lang.org/issues/13882.
# A thread in the middle of reading GZip-encoded content with Net::HTTP
# will stop a Ruby process from exiting.
require 'net/http'
PORT = 5678
SLEEP = 1
# Server