Make sockets non-inheritable (best effort)

XMLWordPrintableJSON

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

      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 Hackett
            Reporter:
            eks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: