Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-10445

_bytesIn in Sock can get decremented

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 2.5.1
    • Networking
    • None
    • Fully Compatible
    • ALL

    Description

      _recv can return -1 so it can decrement the value of _bytesIn. It is currently only being used for metrics.

          int Socket::unsafe_recv( char *buf, int max ) {
              int x = _recv( buf , max );
              _bytesIn += x;
              return x;
          }
      

      Attachments

        Activity

          People

            calvin.chan Calvin Chan
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: