Commit Graph

7 Commits (b6a81f1252531ff6ebe5b6563e6f17778f905eba)

Author SHA1 Message Date
Dmitri Bogomolov 7b9824afc9
Separate method for stopping the bitmessage process and new test case
for settings in the generated config, which particularly checks that
extralowdifficulty settings are not applied to daemon.
4 years ago
Dmitri Bogomolov acea683139
Test SIGTERM signal handling 4 years ago
Peter Šurda ca567acab3
Put uploads into a separate thread
- instead of being processed in the ReceiveQueue thread, uploads are now done
  in a dedicated thread. Only the parsing is done in ReceiveQueue thread.
- the UploadThread is modelled based on the DownloadThred, but simpler.
- it checks for intersection attack, eliminates duplicates and restricts the
  write buffer size to 2MB (may still grow slightly higher if too many big
  objects are requested, but the absolute limit appears to be about 4.5MB in the
  worst case scenario).
- the restriction of the write buffer may cause some upload throttling (to
  about 2MB per second per connection), but can be optimised later
- fixes #1414
5 years ago
Dmitri Bogomolov c8a781c7c5
Marked use of random, subprocess and xmlrpclib in tests
for skipping by bandit
5 years ago
Dmitri Bogomolov d8b4682ee9
Style fixes and docstrings for tests 5 years ago
Dmitri Bogomolov 51df0507e2
Fixed signal files creation 5 years ago
Dmitri Bogomolov c49c131929
New test case class hierarchy:
- TestProcessProto has common setUpClass and tearDownClass methods
  - TestProcess is for testing the PyBitmessage process (using psutil)
5 years ago