lifo / cramp

Real-time web application framework in Ruby
http://cramp.in
MIT License
1.5k stars 121 forks source link

Cramp not flushing on render #40

Open jgwmaxwell opened 12 years ago

jgwmaxwell commented 12 years ago

Hi, I've got a problem with Cramp 0.15.1 not flushing to clients when you call render, so the entire response body is only being sent when finish is called.

I've tested this with all of the examples that stream, and it is true on Chrome and Firefox:

Chrome 17.0.963.12 dev Firefox 8.0

Not sure if I can really offer any more information than that, happy to help try and fix if you want?

jgwmaxwell commented 12 years ago

Running thin with -D -V shows that render is outputting at the correct time, so its definitely an issue with flushing.