JoelKatz
4812d30c16
Be smarter about when we grab fetch packs.
2013-04-25 19:11:18 -07:00
JoelKatz
494202fbcf
Ledger acquire improvements and I/O reductions.
2013-04-25 11:09:57 -07:00
JoelKatz
84087e62cb
Smarter peer selection for acquires.
2013-04-23 06:48:42 -07:00
JoelKatz
df32873321
Cleanups.
2013-04-22 15:17:23 -07:00
JoelKatz
905bc84c94
Small fix.
2013-04-22 11:15:07 -07:00
JoelKatz
aeccecb578
ech pack stuff.
2013-04-22 11:09:07 -07:00
JoelKatz
d339e1c789
Protocol version check was busted.
2013-04-22 07:34:30 -07:00
JoelKatz
8a368204c1
Last part of the fetch pack code.
2013-04-22 06:56:11 -07:00
JoelKatz
0c7066944e
Fetch pack scheme. Phase two.
2013-04-21 20:37:46 -07:00
JoelKatz
79ec8e6070
First part of fetch acceleration changes. Includes a bugfix that I'll push to master.
2013-04-21 12:44:21 -07:00
JoelKatz
8ed0d107fd
Allow administrators to submit transactions that don't meet the local load fee.
2013-04-15 17:14:20 -07:00
JoelKatz
f96df4d84f
Add the IP address to a log message.
2013-03-29 15:48:54 -07:00
JoelKatz
85afb49058
Time fetches better.
2013-03-29 08:22:52 -07:00
JoelKatz
cd14be1afb
Better logging of untrusted validations. (To make sure there's no bug.)
2013-03-21 06:03:47 -07:00
JoelKatz
9ff59c93f8
Fix bogus comment and race condition in ledger fetch code.
2013-03-20 09:31:03 -07:00
JoelKatz
72f291edd1
Better logging of connections to cluster peers.
2013-03-20 08:54:39 -07:00
JoelKatz
8dc9b7bc64
Log IP address on peer disconnection.
2013-03-20 02:00:40 -07:00
JoelKatz
125c5273a6
Dispatch transaction from job queue, not I/O service. Mark a FIXME where we don't do this.
2013-03-18 03:10:20 -07:00
JoelKatz
b9456c8fd7
Except when interacting with boost, use std::function and std::bind
...
when C++11 is available. See: http://stackoverflow.com/questions/14617835
2013-03-16 03:27:43 -07:00
JoelKatz
e392366c63
Get ledger acquire work off the main thread and out of the master lock.
...
Prioritize ledger acquire work appripriately. This should help prevent the
server from becoming overly sluggish while acquiring ledgers. Still todo:
Finish all pending receive operations before sending out any data requests.
2013-03-15 22:34:55 -07:00
JoelKatz
2248d92a33
Wrap all peer socket accesses in a strand. This is needed to prevent a fatal
...
race condition in composed intermediary functions.
A few ledger acquire cleanups.
2013-03-12 16:53:30 -07:00
JoelKatz
01655f4fe1
Remove abort.
2013-03-11 22:20:05 -07:00
JoelKatz
39d85b7b9e
Missing lock.
2013-03-11 22:14:55 -07:00
JoelKatz
7c3d732a08
Name load source. Hook up load sources through WSConnection->RPCHandler.
2013-03-07 18:07:34 -08:00
JoelKatz
32ca30c2e9
Log peer IP if possible.
2013-03-06 19:57:56 -08:00
JoelKatz
eaec5cb206
Log peer IP on bad sign
2013-03-06 19:32:04 -08:00
JoelKatz
0007d76923
Job queue simplificaiton
2013-03-06 19:30:08 -08:00
JoelKatz
0ce965948e
Identify peer commands by name.
2013-03-06 18:37:35 -08:00
JoelKatz
d1169ee86d
Make sure all load sources are named.
2013-03-04 16:22:09 -08:00
JoelKatz
f0c029ef0d
Rework the way load is accounted to be more accurate and more specific.
2013-03-03 16:24:47 -08:00
JoelKatz
44f9106556
Complete the peer ping/pong logic. Disconnect idle/broken peers.
2013-02-20 21:42:27 -08:00
JoelKatz
c375d2d96b
Logging reduction.
2013-02-19 15:44:12 -08:00
JoelKatz
9ed6779af9
Trivial changes.
2013-02-10 01:23:52 -08:00
JoelKatz
79cbb0eea0
Cleanups.
2013-02-09 15:34:43 -08:00
JoelKatz
00fd3d5a49
Demote some logging.
2013-02-08 16:33:35 -08:00
JoelKatz
3d3304ff1b
Assign friendly names to trusted nodes.
2013-01-31 16:10:27 -08:00
JoelKatz
0cb1a1d84b
Cleanups and timing adjustments.
2013-01-28 02:32:57 -08:00
JoelKatz
7f18a8ffc3
Reduce debug levels.
2013-01-15 19:47:20 -08:00
JoelKatz
940cc9059c
Peer::handleWrite grabs the wrong lock.
2013-01-15 16:21:53 -08:00
JoelKatz
a79b6e0a15
Add new fields to peer Json output.
2013-01-14 23:48:51 -08:00
JoelKatz
33b2a20024
Correctly track direction and privilege of peer connections, pass to load tracking.
2013-01-14 23:30:13 -08:00
JoelKatz
efe63c3261
Mark a minor fixme.
2013-01-12 08:43:56 -08:00
JoelKatz
5a6f306c59
Remove extra whitespace.
2013-01-12 08:34:14 -08:00
JoelKatz
e86aa7b7ab
Better debug messages.
2013-01-11 16:54:25 -08:00
JoelKatz
9d0264a603
Fix a deadlock.
2013-01-11 15:50:18 -08:00
JoelKatz
7d7d2bc46b
Fix a bug Arthur reported. Some critical Peer structures are not protected
...
against races caused by concurrent reading from and writing to the SSL
connection and access to Peer variables like mDetaching, mSendingPacket, and
so on.
2013-01-11 11:53:37 -08:00
JoelKatz
88b27a19ed
D'oh! This is what's burning the CPU.
2013-01-10 16:31:33 -08:00
JoelKatz
b5e78bda34
Fix GetObjByHash replies.
2013-01-09 03:28:20 -08:00
JoelKatz
ef775727d4
Reduce some loging.
2013-01-08 17:21:31 -08:00
JoelKatz
df1f3a66d5
Log message less imortant.
2013-01-08 02:02:51 -08:00