forked from Qortal/qortal
0d85a60c54
Instead of 3 threads per peer: 1. peer main thread 2. peer's unsolicited messages processor 3. peer pinger We now use a Jetty-style Execute-Produce-Consume server threading model. For 60 connected peers, we no longer have 180 threads but typically only the usual ~6 threads. Also in this commit: * merging peers locking changed from lock() to tryLock() * PROOF handshake maximum time difference increased from 2000ms to 5000ms * Peers still handshaking after 60s are considered stuck and hence disconnected * We now use NIO SocketChannels instead of raw sockets |
||
---|---|---|
.. | ||
main | ||
test |