Update TODO
[pingcheck] / TODO
1 Wish List
2 =======================================
3
4 - Implement a factory method to create the Pingers objects. Something like:
5   smart_ptr<Pinger> pinger_ptr = PingerCreator::create(PingerCreator::Boost)
6
7 - Design a timer class on top of boost timer, but simpler.
8     TODO: Why?
9
10 - Include the i18n_noop in the strings, but this requires linking with the
11   libgettext.
12
13 - Perform a better treatment of missing configuration items, actually the
14   application just crashes.
15
16 - Refactor the BoostPinger class, it is becoming a monster.
17
18
19 Known Bugs
20 =======================================
21
22 - If one of the "[host]" in the configuration file omit the "interval" entry,
23   the application uses the next "[host]"'s "interval" entry, instead of a 
24   default value. The problem is specific to the configuration read classes
25   that are not smart enough to verify which "[host]" have this entry and which
26   don't.
27   Example:
28      [host]
29      name=A
30      [host]
31      name=B
32      interval=1
33      [host]
34      name=C
35      interval=3
36   Thus, the tuples will be (A,1) , (B,3), (C,?), but A should have a default
37   value, instead of borrow B's value.
38
39 - The interval between each ping to the same host is 1 second later than in the
40   configuration file. For example, a ping configured to be performed each 5
41   seconds takes 6.
42
43 - The overhead when handling a link that is down causes delays with the next
44   pings. This happens if the ping interval is a value close to the ping timeout.
45   So the application wait this amount to ping the next host.
46   This bug has something to do with the blocking ping, because the ping method
47   returns only after a reply or timeout, thus increasing the interval to the
48   next schedule ping to the same host and to the other hosts.
49
50 - The sequence number is always 1. As the BoostPinger is created for just one
51   ping.