aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoinrpc.h
diff options
context:
space:
mode:
authorDavid Joel Schwartz <davidjoelschwartz@gmail.com>2012-04-14 20:35:58 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-05-08 20:11:17 -0400
commite9205293bd8d6352ce51372111336ba3c4e14e70 (patch)
tree28963d21d87c814049ee10cd5bb22e0eca6e1619 /src/bitcoinrpc.h
parent203f9e6c0010893df20fb64c77dc0ac42e396947 (diff)
Support multi-threaded JSON-RPC
Change internal HTTP JSON-RPC server from single-threaded to thread-per-connection model. The IP filter list is applied prior to starting the thread, which then processes the RPC. A mutex covers the entire RPC operation, because not all RPC operations are thread-safe. [minor modifications by jgarzik, to make change upstream-ready]
Diffstat (limited to 'src/bitcoinrpc.h')
-rw-r--r--src/bitcoinrpc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitcoinrpc.h b/src/bitcoinrpc.h
index dd18a504f3..ed5974578c 100644
--- a/src/bitcoinrpc.h
+++ b/src/bitcoinrpc.h
@@ -9,6 +9,7 @@
#include <string>
#include <map>
+#define BOOST_SPIRIT_THREADSAFE
#include "json/json_spirit_reader_template.h"
#include "json/json_spirit_writer_template.h"
#include "json/json_spirit_utils.h"