Trying to stream using eventsource through nginx/fastcgi Trying to stream using eventsource through nginx/fastcgi nginx nginx

Trying to stream using eventsource through nginx/fastcgi


Based on what I have read here:

http://wiki.nginx.org/X-accel

you need to turn off X-Accel-Buffering. Here is some example code:

public ActionResult Stream(string id){    Response.ContentType = "text/event-stream";    Response.Buffer = false;    Response.BufferOutput = false;    Response.Headers["X-Accel-Buffering"] = "no";    return View();}

Hopefully the code above fixes your problem.