_bytesIn in Sock can get decremented

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 2.5.1
    • Component/s: Networking
    • None
    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      _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;
          }
      

            Assignee:
            Calvin Chan (Inactive)
            Reporter:
            Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: