lib/bundler/parallel_workers/unix_worker.rb in bundler-1.4.0.rc.1 vs lib/bundler/parallel_workers/unix_worker.rb in bundler-1.5.0.rc.1
- old
+ new
@@ -12,9 +12,15 @@
rescue IOError, Errno::EPIPE
nil
end
end
+ def initialize(size, job)
+ # Close the persistent connections for the main thread before forking
+ Net::HTTP::Persistent.new('bundler', :ENV).shutdown
+ super
+ end
+
private
# Start forked workers for downloading gems. This version of worker
# is only used on platforms where fork is available.
#