Fix backoff.
authorBen Pfaff <blp@nicira.com>
Thu, 13 Mar 2008 00:12:58 +0000 (17:12 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Mar 2008 22:17:45 +0000 (15:17 -0700)
commit9df2b7bb71e50e05f63789658c91a73c175b6787
treeee1d2f10cb0c416c1cc93feaa8b19e9a524b8bd6
parent3fe1cfae7ea2ad7d83e0b0f70de62e60a4e9d3b2
Fix backoff.

Until now, if the secure channel connected to a controller, then it would
not back off at all from re-connecting.  Therefore, if something causes
the secure channel to disconnect quickly after connecting to a controller,
then we could get storms of attempted connections.

This commit causes the secure channel to back off exponentially from
connection attempts regardless of the reason for disconnection, preventing
such storms.
secchan/secchan.c