Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cho45
Copy link
Contributor

@cho45 cho45 commented Jul 11, 2018

Following config produce invalid duplicated json:

hosts:
  default:
    paths:
      /server-status:
        status: ON
      /server-status2:
        status: ON

h2o_config_register_status_handler(conf->global, requests_status_handler);
h2o_config_register_status_handler(conf->global, events_status_handler);
h2o_config_register_status_handler(conf->global, durations_status_handler);
if (!handler_registered) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think it's worth erroring out? It's likely that this is a configuration error that the user might want to know about?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this case shoud not raise an error.
For my case, I want to serve same status for an internal domain and an external domain with access control.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, i meant the else case for this: otherwise we're simply silently ignoring invalid configuration?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants