Ticket #35 (new defect)

Opened 9 months ago

Results.decTraffic() on ChordNode implementation

Reported by: jordi Owned by: jordi
Priority: major Milestone: 3.1
Component: planetsim Version: PlanetSim 3
Keywords: decTraffic Cc:

Description

From planetsim-devel list, by Igor Mekterovic:


It seems to me that I have to do Result.decTrraffic(); by myself (when I get the error message) instead my program gets into a dead loop. I didn't debug it, but it seems that ChordNode? doesn't do it: (check code after:) else if (msg.getMode() == Globals.ERROR) { If I don't do I get into the dead loop on net.stabilize(), that is on simulate() :

return (toContinue //overlay condition

Results.getTraffic() > 0); //exist application messages??

because traffic never reduces from 1 to 0 on the erronieous message. When I add the Results.decTraffic() in my node error message handler I don't get stuck in the dead loop. Regards, Igor


Note: See TracTickets for help on using tickets.