Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-442

Authentication error should drain a topology.Server's connection pool

      Updates to the auth specification require that an authentication failure on a single general use socket must close all sockets in the pool. The mechanism to do this in the Go driver is to use the topology.Server.Drain method. Update the topology.Server.Connection method to check if the error returned from getting a connection from the pool is an authentication error. If it is, call the Drain method and return the error. This will ensure that the server's connections are all (eventually) closed.

            Assignee:
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Reporter:
            kris.brandow@mongodb.com Kristofer Brandow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: