m2r icon indicating copy to clipboard operation
m2r copied to clipboard

Make sure chunked responses from Rails works ok

Open paneq opened this issue 12 years ago • 1 comments

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 avatar Aug 26 '12 12:08 paneq

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

paneq avatar Oct 28 '12 20:10 paneq