Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1663

Poller enters infinite loop at EOF

    XMLWordPrintable

Details

    Description

      LiteCore has overlooked the fact that a socket read operation will return 0 when it reaches the end of the stream, and continue to do so forever. The socket read operation needs to take this into account, and not schedule itself again in this event. Instead in the event of EOF on a read call, LiteCore should either initiate a close (if EOF write has not been recorded) or close the socket right then and there (if EOF write has been recorded).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jimb Jim Borden
            jimb Jim Borden
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty