Oyatel / CometD.NET

CometD.NET is a C# client library for the Bayeux protocol
44 stars 34 forks source link

Reconnecting over and over again #10

Closed HakanL closed 13 years ago

HakanL commented 13 years ago

I'm not sure if this is problem or not, but when I run the client against cometd 2.1.3 (java) the client reconnects every second (or so). If I check the traffic in Fiddler it successfully connected (returned true), but the client library still retries it. I checked the Java client and the code in c# seems to match, but I don't have a set up where I can run the java client and look at the traffic. It just seems odd that it sends connect messages every second. Plus it actually failed to send any real messages because it was in CONNECTING state every second. I removed scheduleConnect in ConnectedState/execute which "fixed" it for me, but I'm not sure that is a valid fix.

HakanL commented 13 years ago

The fix is not to remove scheduleConnect, it's probably something I did. We can close this issue.