Neil Booth
1ef6a4d785
Split mempool out into new file.
Rework mempool handling
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
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
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
Neil Booth
c523064632
Improve RPC groups call
Show columns correctly for RPC sessions call
8 years ago
Neil Booth
e5bda647df
Update version
8 years ago
Neil Booth
9bdad7ad66
Fix column ordering.
8 years ago
Neil Booth
5f73fa02a3
Prepare 0.8.8
8 years ago
Neil Booth
2a461bd98c
Serve sessions in a priority queue.
Add new RPC command requests.
Adjust sessions RPC command to show pending requests.
Only keep first 15 chars in version string.
Set socket timeout
Try more forceful closing of socket
Fixes #67
8 years ago
Neil Booth
1a9e8cdcd4
More work
8 years ago
Neil Booth
21d1825f09
Prepare 0.8.7
8 years ago
Neil Booth
7399452294
Temporary hack to fix initial sync slowdown
8 years ago
Neil Booth
cbb1e504cc
Cache headers.
8 years ago
Neil Booth
e40db63beb
Queue requests, which have a process method.
8 years ago
Neil Booth
2d411ab20a
Prepare 0.8.6
8 years ago
Neil Booth
4e512343be
Fix other JSON bugs introduced in 0.8.5
Further clean up the JSON code.
8 years ago
Neil Booth
b9f28ba9dc
Prepare 0.8.5
8 years ago
Neil Booth
b2e4d32de6
Remove special-casing of all_seeing_eye
8 years ago
Neil Booth
f904ce2f5d
Rework the JSON layer
Batch requests are now processed and encoded incrementally.
Their bandwidth usage is also incrementally added, and so overlarge
responses are rejected as soon as they become too large.
JSON text is also more memory efficient than the python data
structures they represent.
8 years ago
Neil Booth
b116040365
Clean up param verification code
8 years ago
Neil Booth
36a06ea2c2
Prepare 0.8.4
8 years ago
Neil Booth
1f1f0f42f8
Remove invalidated history cache on notifications
8 years ago
Neil Booth
643c990684
Revert "Add feature to rate limit connections"
This reverts commit a82ab0b075
.
8 years ago
Neil Booth
be8adbbcd5
Fix some typos.
8 years ago
Neil Booth
a82ab0b075
Add feature to rate limit connections
8 years ago
Neil Booth
3f88bc1ab9
Prepare 0.8.3
8 years ago
Neil Booth
79a9e91994
Handle closing sessions a little differently
Move connection type to first flag letter.
All seeing eye is not stale.
8 years ago
Neil Booth
fcf696d3f3
Don't require 2 params for version requests
8 years ago
Neil Booth
9456b75a91
Prepare 0.8.2
8 years ago
Neil Booth
238b9e0285
Process blocks in the executor
This should eliminate latency when new blocks come in
and prevent sessions being dropped whilst they are processed.
8 years ago
Neil Booth
26de3f0261
Prepare 0.8.1
8 years ago
Neil Booth
656f749c70
Add LRU cache for history
8 years ago
Neil Booth
556574640f
IRC encoding fix
8 years ago
Neil Booth
04369dd228
Forcefully drop stale sessions or if shutting down
Don't wait for the socket
8 years ago
Neil Booth
aaf0592f52
Fix typo
8 years ago
Neil Booth
33b1ce8f6d
Prepare 0.8.0
8 years ago
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
8 years ago
Neil Booth
3d2824218b
Close stale sessions
New envvar SESSION_TIMEOUT
A session with no activity is cut off after this time
Fixes #56
8 years ago
Neil Booth
7e3ca6926d
Prepare 0.7.20
8 years ago
Neil Booth
c16792fb89
Only wait 30 secsonds on shutdown
8 years ago
Neil Booth
f1e0676a47
Prepare 0.7.19
8 years ago