lib/garbageman/config.rb in garbageman-0.2.6 vs lib/garbageman/config.rb in garbageman-0.2.7
- old
+ new
@@ -45,7 +45,12 @@
# if we have not GC in 40 seconds turn back on GC
@@max_time_without_gc = 60
def self.max_time_without_gc; @@max_time_without_gc; end
def self.max_time_without_gc=(time); @@max_time_without_gc = time; end
+
+ # max time to wait for connections to drain
+ @@max_connection_drain_time = 60
+ def self.max_connection_drain_time; @@max_connection_drain_time; end
+ def self.max_connection_drain_time=(time); @@max_connection_drain_time = time; end
end
end