If my bitcoin client has hung but it still sort of responding to RPC connects the "client" will get returned as if the connection is there but commands wont return any results and therefore just lets the program hang. Is there a way to only wait XX amount of seconds and then move on?
How often does this happen? Could you write some code to reliably reproduce the issue?
Well yes because my current code is doing it. However i do not think it is the code it is the client as it keeps going into a hung stage after a little while and although it looks like it is still running it stops responding to RPC commands but still allows connections. How would one replicate a faulty bitcoin client?
I was just wondering if you can create code that reliably creates the issue - then we could report it to the bitcoin devs. I'm wondering if it's related to this: bitcoin/bitcoin#2739
I'll go ahead and add a default 5000ms timeout on requests.
add request timeout