Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-1477

C driver: pthread_create calls, result checking

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.5.0
    • Affects Version/s: 1.3.5
    • Component/s: libmongoc
    • Labels:
      None

      CDriver does not check result of pthread create (see https://github.com/mongodb/mongo-c-driver/blob/1.3.5/src/mongoc/mongoc-topology.c#L863).
      When it fails to create new thread and return for example EAGAIN (memory exhausted, ulimits can cause this for example) the behaviour may be incorrect.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            emilio.scalise@mongodb.com Emilio Scalise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: