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

KeepAliveValues should use 4 byte unsigned numbers instead of 8 byte

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.7.3
    • Affects Version/s: 2.7.2
    • Component/s: Connectivity
    • Labels:
      None
    • Fully Compatible

      The fields of KeepAliveValues should be uint (4 bytes) instead of ulong (8 bytes). See:

      https://github.com/mongodb/mongo-csharp-driver/blob/v2.7.2/src/MongoDB.Driver.Core/Core/Connections/KeepAliveValues.cs#L22

      The u_long types referenced here:

      https://msdn.microsoft.com/en-us/library/windows/desktop/dd877220(v=vs.85).aspx

      are in the C language, where u_long is 4 bytes.

      The reported side effect of this bug is that hundreds of keep alive packets are sent per second.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: