SignalR/SignalR — Issue #78: Long polling not kicking in when using running thread to update clients
Author: vladkosarev
Created: 2011-11-27 19:11:51+00:00
State: open

I have something like this spinning up at app start -

ThreadPool.QueueUserWorkItem(_ =>
{
var clients = Hub.GetClients();

while (true)
{
clients.update(data);
Thread.Sleep(2000);
}
});

Now every 2 seconds there is a signalr post request. The response coming back has Connection:Close -

HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Sun, 27 Nov 2011 19:06:25 GMT
X-AspNet-Version: 4.0.30319
Cache-Control: private
Content-Type: application/json; charset=utf-8
Content-Length: 787
Connection: Close

What am I missing?

Thanks