Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5595

Atmosphere: updates infinitly with long polling transport

    XMLWordPrintableJSON

Details

    Description

      I found a problem when I use long polling for the transport :

      When the EventBus loop to the list of AtmosphereResource (on post method) and if the update is too long of each AtmosphereResource, the list of AtmosphereResource is update and reorder (because atmosphere remove and registry the AtmosphereResource due to long polling) and then the loop on EventBus never stop and update is infinitie.

      To solve the probleme I do that on line 366 of EventBus.java :

      for (AtmosphereResource resource : 
      ImmutableList.copyOf(broadcaster.getAtmosphereResources()))

      rather than

      for (AtmosphereResource resource : broadcaster.getAtmosphereResources())

      Best regards

      Attachments

        Activity

          People

            papegaaij Emond Papegaaij
            dutrieux Duto
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: