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

Skip to content

Conversation

@deweerdt
Copy link
Member

This toggle allows H2O to push resources even if the authority doesn't
match the one in the pushed stream. It's up to the administrator to
determine whether this is a safe setting or not.

This toggle allows H2O to push resources even if the authority doesn't
match the one in the pushed stream. It's up to the administrator to
determine whether this is a safe setting or not.
Copy link
Member

@kazuho kazuho left a comment

Choose a reason for hiding this comment

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

Thank you for the PR. I think that this is a nice extension to H2O.

The only thing I wonder is if this needs to be a host-level configuration. While I do not have a strong preference on at which level it should be, I do not see why it is defined as a host-level thing.

It seems to me that it would be more natural to have the directive defined at path-level, considering the fact that what level of protection we'd want depends on the application running behind H2O, and that those application are bound by the path-level configuration directives (e.g. fastcgi.connect, proxy.reverse.url).

#define h2o__uv_binding_h

#include <uv.h>
#include <sys/time.h>
Copy link
Member

Choose a reason for hiding this comment

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

Is this an unrelated change?

Copy link
Member Author

Choose a reason for hiding this comment

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

It is, but it's intentional, my system gets warnings because gettimeofday below isn't defined. I'm happy to submit the fix as a separate PR, if you prefer.

@deweerdt
Copy link
Member Author

deweerdt commented Jul 4, 2018

It seems to me that it would be more natural to have the directive defined at path-level, considering the fact that what level of protection we'd want depends on the application running behind H2O, and that those application are bound by the path-level configuration directives (e.g. fastcgi.connect, proxy.reverse.url).

That makes sense, thanks for the suggestion. Fixed in 22ece12

@kazuho kazuho merged commit 604dd02 into h2o:master Jul 23, 2018
@kazuho
Copy link
Member

kazuho commented Jul 23, 2018

Thank you for the changes. Merged to master.

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