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

isMaster flag to initiate long-polling

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Networking
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2019-05-20, Service Arch 2019-06-03, Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09, Repl 2019-09-23, Repl 2019-10-07, Repl 2019-10-21, Repl 2019-11-04, Repl 2019-11-18

      Add a flag, perhaps "maxTimeMS", to the isMaster command that initiates long-polling. The server will not respond until maxTimeMS expires or there is a server state change that might interest the client, such as a replica set member role change or a replica set config change.

      Also add a field, perhaps "awaitedTimeMillis", to the reply, which is approximately the time the server waited between receiving the requested and assembling the reply. The client can subtract awaitedTimeMillis from the client's round trip latency measurement to estimate the network latency.

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: