reconnect: Add connection attempt limiting feature.
authorBen Pfaff <blp@nicira.com>
Thu, 17 Dec 2009 21:46:16 +0000 (13:46 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 4 Jan 2010 17:47:01 +0000 (09:47 -0800)
commita85c0bbcfd19fcd88ee9966a86dd83107dfd6603
treed16164fc8a5ca6fcdbb9546c5e1e21c27bd33d9c
parentb8781ff08d9981258e75789c6f4ed18a56991577
reconnect: Add connection attempt limiting feature.

Sometimes it is useful to limit the number of connection attempts, either
from policy or because it is not possible to reconnect at all (e.g. because
a connection was accepted from a listening socket instead of made with
connect()).  This commit adds that feature.
lib/reconnect.c
lib/reconnect.h
tests/reconnect.at
tests/test-reconnect.c