Scaling Microsoft's ASP.NET Reverse AJAX “long poll” codeplex example
I'm investigating Microsoft's reverse-AJAX sample wherein they use a long timeout in the ScriptManager <asp:ScriptManager ID="ScriptManager1" runat="server" AsyncPostBackTimeout="2147483647"> And a ManualResetEvent to control the wait: private ManualResetEvent messageEvent = new ManualResetEvent(false); public Message DequeueMessage() { // Wait until a new message. messageEvent.WaitOne(); } public void EnqueueMessage(Message message) { lock (messageQueue) { messageQueue.Enqueue(message); // Set a new message event. messageEvent.Set(); } } I've noticed that Setting AsyncPostBackTimeout to a low