Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1147

Make sockets non-inheritable (best effort)

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4
    • Affects Version/s: None
    • Component/s: None
    • Environment:
      ubuntu 14.04 & mac 10.11.6

      1. use tornado(not async code) with autoreload enabled - I know motor
      2. every time the code is modified, autoreload will run `execv` to replace current process with new process, the old mongo connection will not be released as the FD_CLOEXEC is not set on the socket descriptor, and the new connection will be created.

      We use autoreload feature in our stage environment, so the mongo connection will always reach the max after one or two weeks.

      This might be a problem...

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            color.fuzzy@gmail.com eks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: