nodejs / http

Repository for the HTTP Working Group (Inactive)
9 stars 9 forks source link

Native proxy protocol support #16

Open hueniverse opened 8 years ago

hueniverse commented 8 years ago

Currently, this module: https://github.com/findhit/proxywrap tries to add support for the proxy protocol header, but it's pretty nasty hack. It replaces core node methods in order to hijack traffic to peek at it. Do you think this is something node should provide? If not, can we add some hooks to allow better solutions?

bnoordhuis commented 8 years ago

Related (but not same) discussion: https://github.com/nodejs/node/issues/1490

hueniverse commented 8 years ago

@bnoordhuis I think the scope of proxy support is significantly different from proxy protocol header. Do you have an idea for a better solution than proxywrap? I don't consider hacking core methods to be a valid architecture for anything other than a prototype experiment.