jsonrpc: Properly implement connection timeout.
authorBen Pfaff <blp@nicira.com>
Fri, 8 Jan 2010 23:36:06 +0000 (15:36 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 8 Jan 2010 23:36:06 +0000 (15:36 -0800)
commita1ae9a4316a5d43b54b7e6f746bf43dfe56df302
treef9845df9a0e569e202c905a3805a206ee216d820
parentb57f675ce5326888535f9b77342901cf2c0c76b7
jsonrpc: Properly implement connection timeout.

jsonrpc_session_connect() indirectly called reconnect_disconnected(), which
told the reconnect object that the connection had failed, before it told it
that the connection attempt had started.  When the connection didn't
complete immediately, this caused the connection to time out immediately,
without any backoff.

Reported by Jeremy Stribling.
lib/jsonrpc.c