Bitcoin Forum
September 30, 2024, 01:41:29 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: rpctimeout  (Read 64 times)
buckyball (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 19, 2020, 02:02:12 AM
 #1

What is the easiest way of finding out what the rpctimeout setting of a running server is?

If it is not specified in the bitcoin.conf file then is there a way that I can query the server to get this information using bitcoin-cli or the JSON RPC interface?

Thanks!
nc50lc
Legendary
*
Offline Offline

Activity: 2548
Merit: 6186


Self-proclaimed Genius


View Profile
November 19, 2020, 06:28:04 AM
 #2

The default -rpcservertimeout is 30seconds: /bitcoin/blob/master/src/httpserver.h#L13
Other than that, IDK if there's a way to query the value set by the user.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
NotATether
Legendary
*
Offline Offline

Activity: 1736
Merit: 7290


In memory of o_e_l_e_o


View Profile WWW
November 19, 2020, 07:30:41 AM
 #3

The default -rpcservertimeout is 30seconds: /bitcoin/blob/master/src/httpserver.h#L13
Other than that, IDK if there's a way to query the value set by the user.

There is no RPC call for querying rpctimeout, so unless you somehow get the node's bitcoin.conf file, the only method I can think of is if you spoof a slow internet connection like calling bitcoin-cli from a virtual machine with a throttled network interface, enough to trigger the timeout, and measure the time it took using something like time command in bash.

buckyball (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 19, 2020, 09:04:24 AM
 #4

Thank you nc50lc and NotATether - useful info
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!