Commit Graph

524 Commits

Author SHA1 Message Date
Neil Booth
c4e7878407 Add session ID for each session
Show it in the logs with each session-specific message.
Show the sessions ID in the sessions list with an L suffix if logging.
Add RPC commands to toggle logging of, and disconnect, a session.
Closes #55
2016-12-03 14:32:09 +09:00
Neil Booth
3d2824218b Close stale sessions
New envvar SESSION_TIMEOUT
A session with no activity is cut off after this time
Fixes #56
2016-12-03 13:06:20 +09:00
Neil Booth
7ff3d105f9 Merge branch 'release-0.7.20' into develop 2016-12-03 11:07:10 +09:00
Neil Booth
7e3ca6926d Prepare 0.7.20 2016-12-03 11:06:52 +09:00
Neil Booth
c16792fb89 Only wait 30 secsonds on shutdown 2016-12-03 11:03:27 +09:00
Neil Booth
e59279cc08 Reduce message spew on clean shutdown 2016-12-03 11:02:38 +09:00
Neil Booth
625508f5c6 Send no ID for batch request errors
Fixes #54
2016-12-03 10:56:55 +09:00
Neil Booth
2edb762b83 Merge branch 'release-0.7.19' into develop 2016-12-02 18:45:04 +09:00
Neil Booth
f1e0676a47 Prepare 0.7.19 2016-12-02 18:44:36 +09:00
Neil Booth
62a531b1d0 Revert "Fix ref leak in mempool updates"
This reverts commit 6c95644ae0.
2016-12-02 18:43:15 +09:00
Neil Booth
8303bf7d65 Merge branch 'release-0.7.18' into develop 2016-12-02 07:50:11 +09:00
Neil Booth
35f118edc6 Prepare 0.7.18 2016-12-02 07:49:35 +09:00
Neil Booth
7a9e8c7fef Small tweaks to IRC code 2016-12-02 07:45:51 +09:00
Neil
9f90ae049e Merge pull request #53 from valesi/tor
Add IRC option to publish Tor address
2016-12-02 07:33:29 +09:00
Neil Booth
2f9c8dd38a Add a message to the suppressed list
I hope this
fixes #52
2016-12-02 07:25:32 +09:00
Neil Booth
085eaddfeb Merge branch 'mempool' into develop 2016-12-02 07:23:24 +09:00
Neil Booth
6c95644ae0 Fix ref leak in mempool updates 2016-12-02 07:22:30 +09:00
Shane Moore
0edff0056d Add Tor-specific port options for IRC 2016-12-01 03:21:52 -08:00
Shane Moore
33c5bd65aa Fix IRC port bug, more readable 2016-12-01 02:25:21 -08:00
Shane Moore
95c848a720 Add IRC option to publish Tor address 2016-11-30 23:50:20 -08:00
Neil Booth
a412531ccb Fix typos in docs 2016-11-30 21:06:25 +09:00
Neil Booth
95f131e284 Merge branch 'bauerj-rocksdb_close_test' into develop 2016-11-30 07:37:57 +09:00
Neil Booth
b103df5c80 Merge branch 'rocksdb_close_test' of https://github.com/bauerj/electrumx into bauerj-rocksdb_close_test 2016-11-30 07:37:37 +09:00
Neil Booth
1e5b5a8c04 Merge branch 'release-0.7.17' into develop 2016-11-30 07:30:04 +09:00
Neil Booth
0771221e93 Merge branch 'release-0.7.17' 2016-11-30 07:29:38 +09:00
Neil Booth
d3f8ed31c2 0.7.17 release 2016-11-30 07:29:21 +09:00
Neil Booth
15a88600eb Upped read buffer limit to 1m bytes
This accomodates large tx sends of up to 500k bytes.
However they are unlikely to be propogated by your daemon as the
default relay limit it imposes is 100K.
2016-11-30 07:26:34 +09:00
Neil Booth
33510b1043 Merge branch 'develop' 2016-11-29 23:23:13 +09:00
Neil Booth
aa2baa9706 Prepare 0.7.16 2016-11-29 23:22:59 +09:00
Neil Booth
6b551973e8 queue -> tasks 2016-11-29 23:21:22 +09:00
Neil Booth
8e3cfb3a78 Merge branch 'release-0.7.15' into develop 2016-11-29 23:04:29 +09:00
Neil Booth
056419f847 Merge branch 'release-0.7.15' 2016-11-29 23:04:24 +09:00
Neil Booth
5e7f982427 Prepare 0.7.15 2016-11-29 23:04:06 +09:00
Neil Booth
7b1b8d5d4a Merge branch 'daemon_version' into develop 2016-11-29 23:03:32 +09:00
Neil Booth
0892b12036 Replace $DAEMON_VERSION and $DAEMON_SUBVERSION
in banner file.
2016-11-29 23:03:05 +09:00
Neil Booth
8bd070b8f3 Merge branch 'develop' 2016-11-29 22:27:09 +09:00
Neil Booth
9c8f0283c9 Update version 2016-11-29 22:26:55 +09:00
Neil Booth
b0ed5b172b Merge branch 'release-0.7.14' into develop 2016-11-29 22:22:37 +09:00
Neil Booth
14c348850e Merge branch 'release-0.7.14' 2016-11-29 22:22:30 +09:00
Neil Booth
cc6d183ec4 Prepare 0.7.14 2016-11-29 22:22:07 +09:00
Neil Booth
d9082e59a3 Merge branch 'bandwidth' into develop 2016-11-29 22:20:12 +09:00
Neil Booth
b65bcda504 Add per-session bandwidth limits 2016-11-29 22:19:12 +09:00
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
2016-11-29 20:24:58 +09:00
Neil Booth
c6d8440b3d Remove all RocksDB references on close 2016-11-29 19:50:44 +09:00
Neil Booth
5053101cee LOG_SESSIONS should use self.integer 2016-11-29 19:32:11 +09:00
Neil Booth
bc56eb4133 Merge branch 'release-0.7.13' into develop 2016-11-29 08:04:19 +09:00
Neil Booth
096b8483c6 Merge branch 'release-0.7.13' 2016-11-29 08:04:10 +09:00
Neil Booth
6713373aa2 Prepare 0.7.13 2016-11-29 08:03:51 +09:00
Neil Booth
22c1bbcf03 Merge branch 'log_sessions' into develop 2016-11-29 08:01:09 +09:00
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
2016-11-29 08:00:54 +09:00