Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39183

Change $where to respect socket disconnection

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.8
    • Component/s: JavaScript
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Service Arch 2019-01-28, Service Arch 2019-02-11, Service Arch 2019-02-25
    • Linked BF Score:
      68

      Description

      $where can normally only detect disconnection through invocation of it's kill() method.

      changing the proxy scope to wait on an opCtx would allow us to detect disconnect normally (by allowing us to do baton work while javascript was executing) and issue a kill to the implscope from the proxy scope

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: