This repository has been archived on 2025-02-16. You can view files and clone it, but cannot push or open issues or pull requests.
Peter Surda 0c9cb4824d
Memory leak (kind of) fix
- objectsKnownToThem is supposed to track if it's necessary to send inv
  commands to a peer
- it is supposed to enter garbage collection after 1 hour
  (ObjectTracker.trackingExpires)
- due to peer not announcing all objects, or announcing them before we
  announce, this contains excessive number of entries after connection
  is fully established.
- profiling revealed that this creates unnecessary memory to be kept
  allocated
- this patch will prevent tracking of entries sent during bigInv,
  reducing the memory "leak"
- it is possible, in theory, that this does have some negative effect,
  like increased bandwidth or neglecting to announce some invs. It
  probably doesn't though as my review of objectsKnownToThem occurrences
  didn't reveal any such case, and since the dict didn't track fully
  accurately anyway (so it would have already been broken if it was a
  problem), I consider it an acceptable risk at the moment. If it indeed
  causes problems, they can be solved separately
- I tested this on one of the bootstrap servers with little memory, and
  it increased the number of connections than can be handled by a factor
  of about 3.5
2018-04-01 11:39:02 +02:00
..
2017-05-07 20:15:16 +02:00
2013-11-01 19:28:44 -04:00
2018-02-19 16:57:47 +01:00
2018-04-01 11:39:02 +02:00
2018-03-14 12:56:23 +02:00
2017-09-30 19:45:40 +10:00
2018-02-18 20:14:21 +01:00
2018-02-03 11:46:39 +01:00
2016-05-02 15:00:25 +02:00
2018-02-03 11:46:39 +01:00
2018-01-25 08:11:42 +01:00
2017-07-05 09:17:01 +02:00
2017-02-08 20:37:42 +01:00
2017-02-08 13:41:56 +01:00
2016-05-02 15:00:24 +02:00
2015-03-09 02:35:32 -04:00
2017-06-10 10:11:50 +02:00
2018-03-13 07:41:59 +01:00
2018-02-13 11:55:38 +02:00
2017-08-15 12:24:43 +02:00
2017-08-15 14:09:19 +02:00
2018-03-22 13:48:07 +02:00
2018-01-01 13:10:19 +01:00
2017-01-10 21:15:35 +01:00
2018-02-03 11:46:39 +01:00
2018-02-26 20:03:35 +01:00
2018-02-14 00:23:47 +01:00