Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #24 from raggi/shutdown_bug

Fixes a bug in shutdown, unsure of exact minimal replication case
  • Loading branch information...
commit be08c31a6420b92535532f567bd35991e0a7c41a 2 parents 5bd7f54 + d22945b
@drbrain authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/net/http/persistent.rb
View
2  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|
Please sign in to comment.
Something went wrong with that request. Please try again.