Introduce harcdoded timeouts for each RPC call
authorIustin Pop <iustin@google.com>
Fri, 4 Jun 2010 09:18:33 +0000 (11:18 +0200)
committerIustin Pop <iustin@google.com>
Fri, 4 Jun 2010 15:05:09 +0000 (17:05 +0200)
commit92fd2250e8a41cd48a319942f81052180d36c58b
treefd0efb961d168e437268d4206d608f5d20524832
parente0036155d195f8d5f2db8d40dfba2ca881cfcf16
Introduce harcdoded timeouts for each RPC call

This patch adds a table with per-opcode timeouts. They were chosen in an
empiric, rather than scientific, way - see the comments in lib/rpc.py.

The patch also shows how custom timeouts can be used - call_test_delay
explicitly overrides the timeout with one computed from the delay
parameters.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/rpc.py