Introduce timeout in RAPI queries
authorIustin Pop <iustin@google.com>
Tue, 14 Jul 2009 09:58:22 +0000 (11:58 +0200)
committerIustin Pop <iustin@google.com>
Tue, 14 Jul 2009 12:56:13 +0000 (14:56 +0200)
commit135a6c6a5c2a611789f43887cc63daaa88255c85
tree72a12f6a20d660eba5341cb82df6f0bec707b89c
parentd8de9112add60a674f8aadaab11695b728de9998
Introduce timeout in RAPI queries

The patch adds two constants in Types.hs for connect and query timeout,
then modifies Rapi.hs to use them as the connect and general curl
timeout.

Rapi could be improved more, as currently we wait double the total
timeout due to not aborting early in case the node queries failed.
Ganeti/HTools/Rapi.hs
Ganeti/HTools/Types.hs