private void HandleTimerCallback(object state, ElapsedEventArgs e)
{
DateTime now = SystemTime.Now();
if ((now - this.LastMessageTime).TotalMilliseconds > CometHttpHandler.LongPollDurationInMilliseconds)
{
this.FlushQueue();
}
if ((now - this.LastConnectTime).TotalMilliseconds > CometHttpHandler.ClientTimeoutInMilliseconds)
{
this.Disconnect();
}
}