Permalink
Browse files

Merge pull request #24 from raggi/shutdown_bug

Fixes a bug in shutdown, unsure of exact minimal replication case
  • Loading branch information...
2 parents 5bd7f54 + d22945b commit be08c31a6420b92535532f567bd35991e0a7c41a @drbrain committed Oct 17, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/net/http/persistent.rb
@@ -506,6 +506,8 @@ def cleanup(generation, thread = Thread.current,
timeouts = thread[@timeout_key]
(0...generation).each do |old_generation|
+ next unless thread[generation_key]
+
conns = thread[generation_key].delete old_generation
conns.each_value do |conn|

0 comments on commit be08c31

Please sign in to comment.