This project is read-only.
1

Closed

Stop receiving messages

description

Hi,
The Silverlight client has a issue when working with Laharsub server in a Host different than “localhost”.
When then Server Pool Timeout is reached, usually after 45 seconds, the client doesn’t issue new subscriptions and stops to receive messages.
The issue is with IE8, Windows 7. There are no problems with Firefox.

See http://laharsub.codeplex.com/Thread/View.aspx?ThreadId=235533 for a similar issue and workaround.
In HttpLongPollManager.cs, in StartPoll(), adding a random value solves the problem:

sb.Append("&mm" + new Random().Next());
this.pollContext = new PollContext
{
Poll = (HttpWebRequest)WebRequest.Create(sb.ToString())
};

To replicate:
  • Run Laharsub sample (http://laharsubsample.codeplex.com/)
  • In “Host” field write the name of your PC, press “Start client”
  • Press “Create topic”
  • Press “Subscribe to topic”
  • Wait more than 45 seconds
  • Write a“Message”, press “Publish message”
Cristian
Closed Dec 5, 2010 at 2:29 AM by tjanczuk
The issue was fixed with changeset http://laharsub.codeplex.com/SourceControl/changeset/changes/aefc91ad70cf. The fix is to prevent subscription response caching by adding Cache-Control: no-store HTTP header to the subscription HTTP long poll response.

comments