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

KeepAliveValues should use 4 byte unsigned numbers instead of 8 byte

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.7.3
    • Component/s: Connectivity
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible

      Description

      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.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: