Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1798

MongoConnection.Close() should always call TcpClient.Close()

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.11
    • Component/s: Connectivity
    • Labels:
      None

      TcpClient creates a socket when the TcpClient is first constructed but doesn't open it right away.

      So it might be possible for a disconnected TcpClient to hold on to an ephemeral port even though it's not connected.

      Because of this, MongoConnection.Close() should always call TcpClient.Close().

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            andrew.young Andrew Young
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: