Commit Graph

21 Commits

Author SHA1 Message Date
JoelKatz
e4e4cf0ed6 Release master lock while getting nodes from a mutable ledger for a peer. 2013-05-20 11:58:49 -07:00
JoelKatz
84087e62cb Smarter peer selection for acquires. 2013-04-23 06:48:42 -07:00
JoelKatz
8a368204c1 Last part of the fetch pack code. 2013-04-22 06:56:11 -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
ab751ffb27 Cleanup. 2013-04-09 17:01:08 -07:00
JoelKatz
b0c694195c Add 'getDisplayName' file. 2013-03-21 06:03:17 -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
44f9106556 Complete the peer ping/pong logic. Disconnect idle/broken peers. 2013-02-20 21:42:27 -08:00
JoelKatz
3d3304ff1b Assign friendly names to trusted nodes. 2013-01-31 16:10:27 -08:00
JoelKatz
88437c9cab Cleanup. 2013-01-15 02:01:07 -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
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
ba79026185 Handle pongs. Ready timer for ping timing. 2013-01-07 14:34:11 -08:00
JoelKatz
35ec825d8c Tie the peer code into the new load management code. 2012-12-10 06:27:52 -08:00
JoelKatz
e0a9520d9d Solve proof of works if requested. 2012-12-05 23:48:23 -08:00
JoelKatz
7489eafe1e Cleanup. 2012-12-02 01:02:36 -08:00
JoelKatz
ea94feb643 Slots the PoW peer code will go into. 2012-11-25 21:32:21 -08:00
JoelKatz
89d54999c9 Rework the way the results of ledger and TX map acquisition is passed up and down the
call chain so that the peer logic will know how helpful peers are being, not just whether
they're sending invalid data.
2012-11-21 09:28:09 -08:00
Arthur Britto
ad4725ae74 Add private peers. 2012-11-20 14:48:53 -08:00
Stefan Thomas
fa3fab5816 Moved cpp code to src/cpp and js code to src/js. 2012-11-07 12:49:50 -08:00