Don't allow clients to change the value of internalClient after the initial request

XMLWordPrintableJSON

    • Server Programmability
    • Repl 2021-06-28, Service Arch 2022-10-17, Service Arch 2022-10-31, Service Arch 2022-11-14, Service Arch 2022-11-28
    • 58
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, a client connection could send an initial hello/ismaster request without the internalClient field, and then later on send a subsequent hello command with internalClient: 1 specified, and the server would start treating this connection as an internal client connection.

      We should change this so that the server does not allow a connection to change the value of internalClient after it has already sent the initial hello/ismaster request.
      We should also add testing of this behavior.

            Assignee:
            Unassigned
            Reporter:
            Huayu Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: