mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-06 11:09:13 +00:00
culled some debug output.
mostly works, but fetch slots can get muddled.
This commit is contained in:
parent
ac734ff00d
commit
55df66f6d6
@ -1014,7 +1014,8 @@ static void rhizome_fetch_mdp_slot_callback(struct sched_ent *alarm)
|
|||||||
struct rhizome_fetch_slot *slot=(struct rhizome_fetch_slot*)alarm;
|
struct rhizome_fetch_slot *slot=(struct rhizome_fetch_slot*)alarm;
|
||||||
long long now=gettime_ms();
|
long long now=gettime_ms();
|
||||||
if (now-slot->mdpLastRX>slot->mdpIdleTimeout) {
|
if (now-slot->mdpLastRX>slot->mdpIdleTimeout) {
|
||||||
DEBUGF("MDP connection timed out");
|
DEBUGF("MDP connection timed out: last RX %lldms ago",
|
||||||
|
now-slot->mdpLastRX);
|
||||||
rhizome_fetch_close(slot);
|
rhizome_fetch_close(slot);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1059,6 +1060,7 @@ static int rhizome_fetch_mdp_requestblocks(struct rhizome_fetch_slot *slot)
|
|||||||
write_uint32(&mdp.out.payload[RHIZOME_BAR_BYTES+8+8],slot->mdpRXBitmap);
|
write_uint32(&mdp.out.payload[RHIZOME_BAR_BYTES+8+8],slot->mdpRXBitmap);
|
||||||
write_uint16(&mdp.out.payload[RHIZOME_BAR_BYTES+8+8+4],slot->mdpRXBlockLength);
|
write_uint16(&mdp.out.payload[RHIZOME_BAR_BYTES+8+8+4],slot->mdpRXBlockLength);
|
||||||
|
|
||||||
|
if (0)
|
||||||
DEBUGF("src sid=%s, dst sid=%s, mdpRXWindowStart=0x%x",
|
DEBUGF("src sid=%s, dst sid=%s, mdpRXWindowStart=0x%x",
|
||||||
alloca_tohex_sid(mdp.out.src.sid),alloca_tohex_sid(mdp.out.dst.sid),
|
alloca_tohex_sid(mdp.out.src.sid),alloca_tohex_sid(mdp.out.dst.sid),
|
||||||
slot->mdpRXWindowStart);
|
slot->mdpRXWindowStart);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user