Neil Booth
645e60eaee
Put peer at RHS of sessions log.
Then IPv6 addresses don't mess up the formatting.
8 years ago
Neil Booth
0665e1ac5c
Clear the touched addresses if not caught up
8 years ago
Neil Booth
39af7a7463
Rework main block processor loop
It's less awkward and more explicit.
This brings back the efficiency lost in the 0.9.x series.
It also removes the special case hack: both when syncing and
caught up, block processing is done in the executor.
Fixes #58
8 years ago
Neil Booth
3f64a8dd6e
Log block processing time only if not syncing
Prepare 0.9.10
8 years ago
Neil Booth
1ebebf08d9
Improve logging
8 years ago
Neil Booth
a30932fc86
Fix namespace of RPCError
Fixes #76
8 years ago
Neil Booth
d8e64ea2fe
Merge branch 'develop'
8 years ago
Neil Booth
35f07bd01e
Prepare 0.9.9
8 years ago
Neil Booth
49714a45e6
Mempool tx processing to handle DBError
Fixes #74
8 years ago
Neil Booth
5c80b96d0f
Prioritize mempool processing of sent txs
Closes #73
8 years ago
Neil Booth
ac48695db8
daemon: getting height optionally gets mempool
Improve daemon startup log message
8 years ago
Neil Booth
83f996c7c1
Merge branch 'develop'
8 years ago
Neil Booth
5fe49bb261
Synchronize daemon height and mempool fetching
Cleanup and simplify touched handling and its event, which is
now controlled and owned by the mempool.
The daemon object owns the set of current mempool hashes.
Clean up and simplify the mempool main loop.
Fixes #70 .
8 years ago
Neil Booth
e88ea91e89
Defer address notifications whilst processing a block
Partial fix of #70
8 years ago
Neil Booth
1b2a0bd761
Append first.
8 years ago
Neil Booth
bffdfcc47f
Prepare 0.9.7
8 years ago
Neil Booth
9972379533
Get history and UTXOs in executor for minimal latency.
8 years ago
Neil Booth
4bc35609e3
Prepare 0.9.6
8 years ago
Neil Booth
1c79a2d47e
Fix delayed sessions issue for good
8 years ago
Neil Booth
ba862343b4
Fix issue for paused connections
Prepare 0.9.5
8 years ago
Neil Booth
ef65f9f281
Prepare 0.9.4
8 years ago
Neil Booth
e2f4847632
New env var MAX_SESSIONS
When the number of sessions reaches MAX_SESSIONS, which defaults
to 1,000, turn off TCP and SSL listening sockets to prevent new
connections. When the session count falls below a low watermark,
currently 90% of MAX_SESSIONS, the listening sockets will be re-opened.
Helps prevent DoS and limit open file usage.
Bug fix: do not start serving paused connections until the buffer
socket is sufficiently drained. Also, loop.
8 years ago
Neil Booth
067814e7d9
Remove numpeers and numsessions RPC calls
getinfo has that information and more.
8 years ago
Neil Booth
aaaa914cfa
Tweak some constants to reduce group count
8 years ago
Neil Booth
444122122e
Fix unconfirmed flag
Prepare 0.9.3
8 years ago
Neil Booth
bb17af1906
Fix mempool busy waiting
Prepare 0.9.2
8 years ago
Neil Booth
5f18096a50
Update README
8 years ago
Neil Booth
7037769598
Prepare 0.9.1
8 years ago
Neil Booth
f600d3bd87
Fix a couple of issues with 0.9.0
Fixes #69
8 years ago
Neil Booth
d36925d459
Prepare 0.9.0a
8 years ago
Neil Booth
f1ea36126c
Fix typo
8 years ago
Neil Booth
72ae3eabfc
Prepare 0.9.0
8 years ago
Neil Booth
957dfb6fb8
Merge branch 'develop'
8 years ago
Neil Booth
1ef6a4d785
Split mempool out into new file.
Rework mempool handling
8 years ago
Neil Booth
42868f899c
Merge branch 'develop'
8 years ago
Neil Booth
ed3db731c2
Prepare 0.8.12
8 years ago
Neil Booth
263e88ad57
Tweak request handling
Pause serving sessions whose socket buffer is full (anti-DoS)
Serve requests in batches of 8
Don't store the session in the request
RPC has priority 0; every other session at least 1
Periodically consolidate small session groups into 1
8 years ago
Neil Booth
b3b3f047c2
Better columns
8 years ago
Neil Booth
cfb92a139f
Prefer transport.abort()
8 years ago
Neil Booth
c6093639b5
Don't set socket timeout
8 years ago
Neil Booth
792f58fb5d
Merge branch 'develop'
8 years ago
Neil Booth
89d83349e1
Prepare 0.8.11
8 years ago
Neil Booth
d1e314a48b
Show group session count in the groups RPC call
8 years ago
Neil Booth
c181f8df82
Put a try/except around socket.shutdown
8 years ago
Neil Booth
97d1397f2c
Prepare 0.8.10
8 years ago
Neil Booth
6fcb8b0574
Fix cut-n-pasteo
8 years ago
Neil Booth
5b24516a1c
Merge branch 'develop'
8 years ago
Neil Booth
c9035795c7
Prepare 0.8.9
8 years ago
Neil Booth
99d7e65de8
Give sockets a grace period to close
Defaults to 15 seconds for now.
Update docs on systemd and process limits.
Fixes #62
8 years ago
Neil Booth
b8239c54d9
Catch UnicodeError in IRC gethostbyname
Fixes #68
8 years ago