I'm using the latest SignalR
from NuGet in a MVC4 site. Using the sample hub code (or any code), I'm getting some weird connection problems. Everything loads fine, SignalR makes the negotiate call and logs "EventSource Connected" and returns connectionid. The problem starts when it makes the signalR/connect
request with any transport. It returns a 200 response with the proper headers but the connection hangs open. If the called hub method executes a method on Caller
or Clients
, it does not get executed in the browser until the next request OR after 10-30 seconds later if you sit and wait. It's like something's stuck in the pipe and it gets flushed by the next request or some cleanup mechanism.
I made a clean project for this in a new website with its own app pool. The issue occurs only on one machine and only under IIS7.5. The same project run on the same machine under IIS Express or Cassini works fine. This project ran fine the last time I worked on it about a month ago. I've tried different browsers and different jQuery versions. I've tried restarting the entire machine and spent several hours in fiddler/debugger to no avail.
This is the server-side code the test runs:
public class Chub : Hub {
public void CallMeBack() {
Caller.callme();
}
}
Blew the whole day on this, hope someone can help!