Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-895

What does getLastReadTime() return ?

    XMLWordPrintableJSON

Details

    Description

      I started my server (implemented using MINA), the client connects to it and within 5 seconds a heartbeat comes in. To handle the heartbeat, I wanted to know if the heartbeat came in within 5 seconds since the last read time (in this case, connect time). However, the last read time is appearing as a value in the order of 10^9 or so ! So, the comparison always fails.

      That is why, I wanted to know, if the last read time was the time duration since the last read. Or, does it actually represent some time (ddmmyy... etc.) ?

      Also, the connect is happening once the client has sent a connect message (containing, for example, id and password). This message is handled in a handler. Isn't this connect counted as a read after the session is created (i.e. the server is bound as acceptor.bind(portNumber)) ?

      Attachments

        1. LastReadTime.png
          84 kB
          Nagesh

        Activity

          People

            Unassigned Unassigned
            codeboy Nagesh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: