Bitcoin Forum
May 21, 2024, 01:44:25 PM *
News: Latest Bitcoin Core release: 27.0 [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: 2422
Merit: 5614


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: 1610
Merit: 6752


bitcoincleanup.com / bitmixlist.org


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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
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!