New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xhr-multipart not proxied #70
Comments
Could you provide a test case that reproduces this? |
Sure. This is a very basic test with socket.io. https://gist.github.com/1075579 You need to have socket.io 0.6.x and http-proxy in path. Then open the app in Firefox. If you navigate to the socket.io server at http://localhost:6666 you will see the connect message in the console. If you navigate to the proxied request at http://localhost:6060 the multipart-xhr connection is opened and immediately closed again. |
hmm, I am unable to reproduce this. It loads okay. but never logs If I point chrome at localhost:6666 I get okay, i'm reproducing this in firefox with socket.io@0.6.0 Can you make a simpler test that does not require a browser or socket.io? I know some things socket.io does will not work behind a proxy. (like using multiple ports) prehaps this should be posted as a socket.io issue? |
The tests currently use: https://github.com/nodejitsu/node-http-proxy/blob/master/vendor/websocket.js as the websocket client. |
I was able to reduce the bug and remove the socket.io dependency https://gist.github.com/1088883. |
good work. I can see it work in firefox (note, firebug must be installed - to get console.log) the same behaviour occurs with curl. I will tag this as confirmed bug, migrate this test to vows, then fix. thanks @fjakobs, good hunting! |
Thanks. Good luck fixing |
I think this might be a bug in core's handling of keep-alive. I expanded your gist to request to your keep-alive server. by passing the proxy it still doesn't work. it does not get the response body. However, if you comment out here is my gist: https://gist.github.com/1113432 there are lots of issues for keep-alive in node: https://github.com/joyent/node/issues/search?q=keep-alive |
Any update on this? |
Closing due to old age, this should no longer be an issue |
I'm, trying to use socket.io's xhr-multipart transport but the connection is always closed after the first chunk of data. Looks like there is a problem with transfer encoding chunked.
The text was updated successfully, but these errors were encountered: