Neil Booth
4e512343be
Fix other JSON bugs introduced in 0.8.5
Further clean up the JSON code.
8 years ago
Shane Moore
e17a9ee2c7
Update RPC client for JSON rework and add missing arg in json_request_text
Fixes #60
8 years ago
Neil Booth
bc9027094b
Fix environment variable (bauerj)
8 years ago
Neil Booth
c9a10be5ba
Introduce incoming buffer size limit
- incoming buffered network requests limited to 150,000 bytes
which I believe is ample for a genuine client
- if exceeded, the connection is dropped
- raise outgoing data limit for RPC connections to 5 MB - expect
sessions calls can be long and connection is implicitly trusted
- similarly raise incoming buffered data limit to 5 MB for RPC
connections
8 years ago
Neil Booth
c08ade5861
Add session logging facility
Move session logging code to protocol.py from electrum_rpc.py
Use it for periodic logging controlled by envvar LOG_SESSIONS
For each session, track sent transaction stats and show that
per-session instead of errors
8 years ago
Neil Booth
198fe298b7
Bump timeout to 15s. Show timeout if timed out.
8 years ago
Neil Booth
42c00d32d2
Rewrite lib/jsonrpc.py to be a useful client too
Use for an improved electrumx_rpc.py, so it now handles responses spread
over several packets. Also added a timeout of 5 seconds.
Fixes #43
8 years ago
Neil Booth
b2672a4ae5
Widen subs column
8 years ago
Neil Booth
5fffc25188
Get send and recv the right way round
8 years ago
Neil Booth
0725b54a45
Tweak RPC output
8 years ago
Neil Booth
a22a4650a5
Use json.dumps to print
8 years ago
Neil Booth
831225492e
Better RPC sessions stats
8 years ago
Neil Booth
3b6ab77e47
Break out JSONRPC into own file
- improved handling of JSON 2.0 RPC protocol
- permits batched requests (not yet supported by Electrum client)
8 years ago
Neil Booth
c93f6cb920
Final cleanup
8 years ago
Neil Booth
cb7b7dd1fe
Move pretty printing of sessions to client
Tweak logging
8 years ago
Neil Booth
6946863879
Add setup.py
Fix electrum_rpc.py
Rename server_main.py to electrumx_server.py
8 years ago
Neil Booth
d2ebb80fac
Extend copyright notice; improve comments
8 years ago
Neil Booth
334ffdaa4f
Begin work on proper server
8 years ago
Neil Booth
edc33febe8
Improve help of electrumx_rpc
8 years ago
Neil Booth
0b01026b88
Add an RPC server
And associated electrumx_rpc command
8 years ago