diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-08-28 17:14:51 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-09-03 10:59:19 +0200 |
| commit | 6d2bc221463ffe3ed3a99e8c682b090983b2e7b5 (patch) | |
| tree | 4370d570b38fea9ffa1ad630b481433cfb2b890b /src/httpserver.cpp | |
| parent | Implement RPCTimerHandler for Qt RPC console (diff) | |
| download | discoin-6d2bc221463ffe3ed3a99e8c682b090983b2e7b5.tar.xz discoin-6d2bc221463ffe3ed3a99e8c682b090983b2e7b5.zip | |
Document options for new HTTP/RPC server in --help
Diffstat (limited to 'src/httpserver.cpp')
| -rw-r--r-- | src/httpserver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/httpserver.cpp b/src/httpserver.cpp index 13f870567..813764f22 100644 --- a/src/httpserver.cpp +++ b/src/httpserver.cpp @@ -355,7 +355,7 @@ bool StartHTTPServer(boost::thread_group& threadGroup) return false; } - evhttp_set_timeout(http, GetArg("-rpctimeout", 30)); + evhttp_set_timeout(http, GetArg("-rpctimeout", DEFAULT_HTTP_TIMEOUT)); evhttp_set_max_body_size(http, MAX_SIZE); evhttp_set_gencb(http, http_request_cb, NULL); @@ -367,8 +367,8 @@ bool StartHTTPServer(boost::thread_group& threadGroup) } LogPrint("http", "Starting HTTP server\n"); - int workQueueDepth = std::max((long)GetArg("-rpcworkqueue", 16), 1L); - int rpcThreads = std::max((long)GetArg("-rpcthreads", 4), 1L); + int workQueueDepth = std::max((long)GetArg("-rpcworkqueue", DEFAULT_HTTP_WORKQUEUE), 1L); + int rpcThreads = std::max((long)GetArg("-rpcthreads", DEFAULT_HTTP_THREADS), 1L); LogPrintf("HTTP: creating work queue of depth %d and %d worker threads\n", workQueueDepth, rpcThreads); workQueue = new WorkQueue<HTTPClosure>(workQueueDepth); |