Change away from using SELECT when open socket

Description

When using SELECT, there is a max of 1024 file descriptor limit. For the Flutter app which each plugin tends to use a lot of file descriptors, it is easy to reach the limit.

From a discussion in a meeting, commented that the reason that we are using SELECT instead of POLL is that the POLL doesn't work on Windows. Also we are using socketpp 3rd library which is using SELECT. 

Activity

Show:

CB robot December 14, 2021 at 2:15 AM

Build couchbase-lite-java-3.0.0-185 contains couchbase-lite-core commit 627462d with commit message:
: Use poll instead of select for opening connections on Unix (#1321)

CB robot December 14, 2021 at 2:14 AM

Build couchbase-lite-android-3.0.0-185 contains couchbase-lite-core commit 627462d with commit message:
: Use poll instead of select for opening connections on Unix (#1321)

CB robot December 10, 2021 at 8:43 PM

Build couchbase-lite-net-3.0.0-120 contains couchbase-lite-core commit 627462d with commit message:
: Use poll instead of select for opening connections on Unix (#1321)

CB robot December 10, 2021 at 10:05 AM

Build couchbase-lite-ios-3.0.0-335 contains couchbase-lite-core commit 627462d with commit message:
: Use poll instead of select for opening connections on Unix (#1321)

CB robot December 9, 2021 at 3:59 AM

Build couchbase-lite-log-3.0.0-195 contains couchbase-lite-core commit 627462d with commit message:
: Use poll instead of select for opening connections on Unix (#1321)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created December 8, 2021 at 11:22 PM
Updated August 31, 2024 at 10:55 AM
Resolved December 9, 2021 at 1:49 AM
Instabug