Michael Bayne
09f0bee0f3
Yet more header patrol.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4602 542714f4-19e9-0310-aa3c-eee0fc999fb1
2007-02-24 00:39:27 +00:00
Ray Greenwell
3cef4b5cec
Prevent NPE when we process a pong that was destined for a different
...
DeltaCalculator.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4003 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-04-07 18:52:24 +00:00
Ray Greenwell
fb913a6bba
Go back to using the median value for our delta estimate.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3991 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 19:06:40 +00:00
Ray Greenwell
981deb3b6b
Fixed two bugs with delta calculation:
...
- if a pong response took more than 5 seconds to receive, another ping
would be sent. When the pong finally arrived the delta would be
calculated using the most recently sent ping.
Fix: don't send more pings while waiting on a pong.
- After a pong is received, the _deltas array is mangled while
calculating the server delta, making subsequent pongs possibly
overwrite earlier calculated deltas.
Fix: calculate using a copy.
Also, changed the delta calculation to be the mean of the deltas rather
than the median. Left code in to do it both ways if this change was not
kosher...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3990 542714f4-19e9-0310-aa3c-eee0fc999fb1
2006-03-30 01:08:32 +00:00
Michael Bayne
5dab3011e0
Don't freak out if we get lots of pongs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3160 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-22 01:19:55 +00:00
Michael Bayne
aa241b22cb
Do things in a slightly more thread-safe manner (whatever that means).
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3148 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-18 21:40:24 +00:00
Michael Bayne
a9720fd905
LGPLed the library. Hello world.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:21:06 +00:00
Michael Bayne
d618d3c771
Eclipse suggested cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2971 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:50:28 +00:00
Michael Bayne
bedb859943
Demoted logging to debug.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2814 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-09-25 15:57:38 +00:00
Michael Bayne
ab2a627f1a
Report our time calculations always so that we can do a better job of
...
debugging weird server delta calculations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2665 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-18 17:17:21 +00:00
Michael Bayne
2168067c74
Debug logging cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1399 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 22:05:52 +00:00
Michael Bayne
2f1a67077a
Added code to establish the time delta between the client and server
...
clocks immediately following authentication.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1398 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-05-28 21:56:38 +00:00