lib/pitchfork/http_server.rb in pitchfork-0.7.0 vs lib/pitchfork/http_server.rb in pitchfork-0.8.0

- old
+ new

@@ -78,11 +78,11 @@ :after_worker_fork, :after_mold_fork, :listener_opts, :children, :orig_app, :config, :ready_pipe, :default_middleware, :early_hints attr_writer :after_worker_exit, :before_worker_exit, :after_worker_ready, :after_request_complete, - :refork_condition, :after_worker_timeout, :after_worker_hard_timeout + :refork_condition, :after_worker_timeout, :after_worker_hard_timeout, :after_monitor_ready attr_reader :logger include Pitchfork::SocketHelper include Pitchfork::HttpResponse @@ -209,9 +209,11 @@ # We could just return here as we'd register them later in #join. # However a good part of the test suite assumes #start only return # once all initial workers are spawned. wait_for_pending_workers end + + @after_monitor_ready&.call(self) self end # replaces current listener set with +listeners+. This will