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

Rewrite connection handshake flow to not recurse

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0.rc0
    • Component/s: Authentication
    • Labels:
      None
    • Story Points:
      2

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              oleg.pudeyev Oleg Pudeyev
              Reporter:
              oleg.pudeyev Oleg Pudeyev
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: