forked from I2P_Developers/i2p.i2p
mark the ping datapoint before actually sending it, for those instances where a reply can be sent back faster than the ACK of the send
This commit is contained in:
@@ -84,8 +84,8 @@ class ClientEngine {
|
|||||||
/** fire off a new ping */
|
/** fire off a new ping */
|
||||||
private void doSend() {
|
private void doSend() {
|
||||||
long now = Clock.getInstance().now();
|
long now = Clock.getInstance().now();
|
||||||
_heartbeat.sendPing(_data.getConfig().getPeer(), _id, now, _data.getConfig().getSendSize());
|
|
||||||
_data.addPing(now);
|
_data.addPing(now);
|
||||||
|
_heartbeat.sendPing(_data.getConfig().getPeer(), _id, now, _data.getConfig().getSendSize());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** our actual heartbeat pumper - this drives the test */
|
/** our actual heartbeat pumper - this drives the test */
|
||||||
|
Reference in New Issue
Block a user