Results 1 to 4 of 4

Threaded View

  1. #1

    LS sending EOS before all snapshots arrives

    Hello,

    Our client received a EOS before all snapshot data has arrived. Here's a dump on the client side:

    Code:
    U,4,1,ADD|11|26.99|200|19:40:23|308
    U,4,1,|12||14000|19:40:28|16
    U,4,1,|13||2600|19:40:34|3
    U,4,1,|14||10700|19:40:40|16
    U,4,1,|15||300|19:40:41|238
    U,4,1,|16||1000|19:40:43|147
    U,4,1,|17||12600|19:40:56|16
    U,4,1,|18||500||8
    U,4,1,|0||5200|19:41:02|16
    U,4,1,|1||100|19:39:46|238
    U,4,1,|2||400|19:39:49|16
    U,4,1,|3||12800|19:39:50|
    U,4,1,|4||100|19:39:53|3
    U,4,1,|5||8200|19:39:58|16
    U,4,1,|6||14900|19:40:02|
    U,4,1,|7||700|19:40:03|85
    U,4,1,|8||100|19:40:06|308
    U,4,1,|9|||19:40:12|27
    U,4,1,|10||300|19:40:17|238
    EOS,4,1 <------------------------- should this be here??
    U,4,1,|19||3600|19:40:56|120
    U,4,1,|20||300||16
    ...
    On the server side we assure that ItemEventListener.smartEndOfSnapshot is called only when all snapshots has been sent:
    Code:
                            sendSnapshot(item, listener, itemHandle);
                            listener.smartEndOfSnapshot(itemHandle);
    sendSnapshot just get the items and calls ItemEventListener.smartUpdate:
    Code:
        for (final HashMap<String, String> linha : linhas) {
                        final HashMap<String, String> upd = new HashMap<>(linha);
                        upd.put(DataProvider.KEY_FIELD, pos.toString());
                        upd.put(DataProvider.COMMAND_FIELD, DataProvider.ADD_COMMAND);
                            
                        listener.smartUpdate(itemHandle, upd, true);
         }
    The subscribe mode is COMMAND in our scenario.

    Fortunately our client knows how to deal with this but we want to know if it is supposed to work this way.

    Thanks.
    Last edited by EmersonPardo; June 14th, 2019 at 10:54 PM.

 

 

Similar Threads

  1. Snapshots in command mode configurations
    By flybyGWT in forum Adapter APIs
    Replies: 2
    Last Post: May 29th, 2014, 01:57 PM
  2. Possible missing EOS command?
    By yoadsn in forum General
    Replies: 3
    Last Post: December 22nd, 2011, 01:14 PM
  3. Sending an image to the client
    By mnanda in forum Client APIs
    Replies: 2
    Last Post: July 16th, 2010, 12:04 PM
  4. LS not sending all messages to client
    By mnenchev in forum General
    Replies: 3
    Last Post: April 20th, 2010, 10:10 AM
  5. sending multiple snapshot (true) event in smartUpdate()
    By Pradeep Chahal in forum Adapter APIs
    Replies: 6
    Last Post: October 12th, 2009, 01:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 03:26 AM.