0 Replies Latest reply on Sep 30, 2008 9:24 AM by seth_hodgson

    [svn] 3418: Remove obsolete poll-sync responders from PollingChannel and other impacted protocol-specific channels .

    seth_hodgson Level 1
      Revision: 3418
      Author: shodgson@adobe.com
      Date: 2008-09-30 10:24:48 -0700 (Tue, 30 Sep 2008)

      Log Message:
      -----------
      Remove obsolete poll-sync responders from PollingChannel and other impacted protocol-specific channels.

      QA: No
      Doc: No
      Checkintests Pass: Yes

      This stuff was originally used by a PollingChannel to directly monitor subscribe/unsubscribe commands issued by higher-level components in order to drive a count of active subscriptions, and from that, whether or not the channel needed to issue poll requests.

      However, DataService, and then Consumer ended up managing this directly because they had better insight into when they considered themselves subscribed and they notify the PollingChannel of their state changes directly (mx_internally). When this was added, the underlying poll-sync responder machinery didn't go away, and it generally doesn't cause problems except in the case of a client disconnect without a preceding explicit unsubscribe. In this case the higher level component moves to an unsubscribed state when it disconnects (and lets the PollingChannel know) but because no unsubscribe command is sent by a poll-sync responder, the extra count it added never decrements and the channel continues to poll incorrectly.

      Modified Paths:
      --------------
      flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/AMFChannel.as
      flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/HTTPChannel.as
      flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/NetConnectionChannel.as
      flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/channels/PollingChannel.as