spdy-http2 / node-spdy

SPDY server on Node.js
2.81k stars 196 forks source link

Response object does not have push function #236

Closed motss closed 8 years ago

motss commented 8 years ago

I have been facing an error saying that push is not a function of the response object when the module tries to push some files from Node Server through Nginx reverse proxy.

indutny commented 8 years ago

Hello!

Is request.isSpdy true?

Thank you, Fedor.

motss commented 8 years ago

IKR. It's false.

indutny commented 8 years ago

If it is false - your server is receiving regular HTTP/1.1 request, not a SPDY request. There is no PUSH streams in HTTP/1.1 specification, so there is no PUSH support for this requests too.

To be able to PUSH stuff, you need to establish HTTP/2 or SPDY connection between nginx and node-spdy, and I have no idea how to do it, or if it is possible to do. Sorry!

motss commented 8 years ago

Okay, I just hope for native support from Nginx.