[SERVER-10445] _bytesIn in Sock can get decremented Created: 06/Aug/13 Updated: 14/Apr/16 Resolved: 03/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Networking |
| Affects Version/s: | 2.5.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial - P5 |
| Reporter: | Randolph Tan | Assignee: | Calvin Chan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Participants: |
| Description |
|
_recv can return -1 so it can decrement the value of _bytesIn. It is currently only being used for metrics.
|
| Comments |
| Comment by Calvin Chan [ 03/Aug/15 ] |
|
int Socket::_recv(char* buf, int max) { The only case in which _recv will return a negative integer is if SSL_read returns a negative integer. SSL_read throws an exception if that is the case, so this works as designed |