Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1650

Rewrite connection handshake flow to not recurse

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0.rc0
    • Affects Version/s: None
    • Component/s: Auth
    • None
    • 2

      Currently connection handshake looks at whether the connection has a socket, if not it will call the connect call which then will attempt to handshake again. I haven't seen this loop in production but it sometimes happens during development and is very confusing to deal with.

      Suggested repair is to make it so that the @socket is only populated when the socket is handshaken and authenticated.

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: