Skip to content
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

Make sure chunked responses from Rails works ok #42

Open
paneq opened this issue Aug 26, 2012 · 1 comment
Open

Make sure chunked responses from Rails works ok #42

paneq opened this issue Aug 26, 2012 · 1 comment

Comments

@paneq
Copy link
Collaborator

paneq commented Aug 26, 2012

https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-core/j5F0LchIaX8

It is problematic for some servers and probably does not work correctly right now

buffer = ""
body.each { |part| buffer << part }
return Response.new(status, headers, buffer)

We could check the Transfer-Encoding header for chunked value and send every chunk separately to m2 (and probably an empty one at the end).

@paneq
Copy link
Collaborator Author

paneq commented Oct 28, 2012

Or we could just deliver every part to m2 as separate ZMQ message.

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

No branches or pull requests

1 participant