This project is read-only.

Stop receiving messages 2


The silverlight client (changeset aefc91ad70cf) stop receiving messages when there are communication failures.

It happens in this way:
  • the application subscribes to messages published to one or more topics (client.SubscribeAsync)
  • laharsub client begins an asyncronous request to the server and waits for the server response (HttpLongPollManager.cs | StartPoll)
  • the connection fails
  • the Server Pool Timeout is reached, by default after 45 seconds
  • the connection is restored
  • laharsub client keep waiting for the old server response and stop receiving messages
  • the application can create topics and send messages to the server


tjanczuk wrote Dec 6, 2010 at 2:24 AM

Cristian, when you say "connection fails" what exactly do you have in mind? In other words, how did you achieve this condition?

CristianD wrote Dec 6, 2010 at 11:09 AM

I run the Laharsub console in one pc and the Laharsub sample in other pc.
Then I unpluged the network cable (“connection fails”) and plugged it again (“connection restored”).