<div class="gmail_quote">On Thu, Feb 10, 2011 at 7:04 AM, Lee Salzman <span dir="ltr"><<a href="mailto:lsalzman@gmail.com">lsalzman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I haven't changed anything about how that worked in this version, but rather your usage of it was never safe in the first place. You can't really do that using peer->incomingDataTotal because it resets regularly and not in any way the user can predict. It is for internal purposes only, really. You're better off just counting the total amount of packet data you receive on the peer and just throwing on a per-packet fudge-factor to account for header sizes in some vague way.<div>
<div></div><div class="h5"><br></div></div></blockquote><div><br>After a little reflection I came to the same conclusion. I decided the headers probably don't contribute a significant amount to the total so I could just ignore them. I removed it and just keep a local total now.<br>
<br>Thanks for the help.<br><br>The new version seems to work just fine so far.<br><br></div></div>