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

Poller enters infinite loop at EOF

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.4
    • Component/s: LiteCore
    • Security Level: Public

      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

          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-lite-log-3.0.0-53 contains couchbase-lite-core commit f5e06ee with commit message:
          CBL-1663: Fix infinite loop on socket POLLHUP (#1120)

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-lite-log-3.0.0-53 contains couchbase-lite-core commit f5e06ee with commit message: CBL-1663 : Fix infinite loop on socket POLLHUP (#1120)
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-lite-net-3.0.0-34 contains couchbase-lite-core commit f5e06ee with commit message:
          CBL-1663: Fix infinite loop on socket POLLHUP (#1120)

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-lite-net-3.0.0-34 contains couchbase-lite-core commit f5e06ee with commit message: CBL-1663 : Fix infinite loop on socket POLLHUP (#1120)
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-lite-android-3.0.0-66 contains couchbase-lite-core commit f5e06ee with commit message:
          CBL-1663: Fix infinite loop on socket POLLHUP (#1120)

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-lite-android-3.0.0-66 contains couchbase-lite-core commit f5e06ee with commit message: CBL-1663 : Fix infinite loop on socket POLLHUP (#1120)
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-lite-java-3.0.0-66 contains couchbase-lite-core commit f5e06ee with commit message:
          CBL-1663: Fix infinite loop on socket POLLHUP (#1120)

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-lite-java-3.0.0-66 contains couchbase-lite-core commit f5e06ee with commit message: CBL-1663 : Fix infinite loop on socket POLLHUP (#1120)
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-lite-net-3.0.0-47 contains couchbase-lite-core commit f5e06ee with commit message:
          CBL-1663: Fix infinite loop on socket POLLHUP (#1120)

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-lite-net-3.0.0-47 contains couchbase-lite-core commit f5e06ee with commit message: CBL-1663 : Fix infinite loop on socket POLLHUP (#1120)

            People

            Assignee:
            jimb Jim Borden
            Reporter:
            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