Closed ncs1 closed 1 year ago
@casperisfine
I'm able to repro with:
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
gem "net-http-persistent"
end
require "net/http/persistent"
http = Net::HTTP::Persistent.new name: 'my_app_name'
p http.request(URI("https://example.com"))
pid = fork do
p http.request(URI("https://example.com"))
end
Process.wait(pid)
I'll dig a bit more, but at first sight I'd say the problem is on net-http-persistent
side (they inherit from ConnectionPool
).
@casperisfine thank you very much ! Much appreciated.
Hi,
Using (latest versions):
Using simple:
results in:
I think it traces back to commit 428c06f on connection_pool repository
Opened the issue concurrently on parallel gem too, but from reviewing (shallowly) parallel code it may be more appropriate here.
Stack trace:
Thank you very much.