Many times, especially while debugging RPC callbacks to core using gdb, the test timeout kicks in before the response can get back. This can be annoying and requires restarting the functional test as well as gdb attachment.
This PR adds a --notimeout flag into test_framework and sets the rpc_timeout accordingly if the flag is set.
The same effect can be achieved with newly added --factor flag but keeping a separate flag that explicitly disables the timeout can be easier for new testers to find it out and separates its purpose from the --factor flag.
Requesting review ryanofsky jnewbery as per the IRC discussion.
Update: After initial round of review, the approach is modified to accommodate the functionality in already existing --factor flag. --factor is changed to --timeout-factor to express its intent better.