Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set up callback only after target_list is loaded (#18)
This fixes an issue observed in Kong: when restarting the kong process, the concurrent worker processes load targets, and trigger other workers's event callback. When callbacks hit before the target list is ready, the event_handler method error would happen at line 925: `the targets is nil` when indexing its `ip` field. See Kong/kong#4453
- Loading branch information