Lee Miller
abd7977471
Start writing a connection class for tracking active connections
2023-09-04 03:26:34 +03:00
Lee Miller
eb447a92dc
Count connections in manager and write the numbers into a CSV file
2023-09-04 03:26:28 +03:00
Lee Miller
48a86815c8
Skip pushing test for now
2023-09-04 00:41:17 +03:00
Lee Miller
13ecc4c100
Added a rough implementation of a connection searching for specific vectors
...
and used it in test_push() - need to debug.
2023-09-03 23:22:41 +03:00
Lee Miller
b62f0309ed
A sketchy test for a connection, acting in a suspicious way
2023-09-03 23:22:23 +03:00
Lee Miller
f859d696d6
A short test for normal connection (with timeout in 5 min)
2023-08-27 22:52:46 +03:00
Lee Miller
e24271c728
Define a base class for connection to subclass for special purposes
2023-08-20 04:16:22 +03:00
Lee Miller
58a80bb4a4
Remove unreachable except clause for ConnectionResetError
...
- handled in socket.error branch. TODO: follow PEP 3151
2023-08-20 01:19:11 +03:00
Lee Miller
8755e56167
Replace Manager.clean_objects() by the extended version from main
...
and call it upon the Manager start.
2023-08-20 01:14:17 +03:00
Lee Miller
45a4a8fd31
Manifest disconnecting
2023-08-16 03:42:16 +03:00
Lee Miller
644a09ba0b
Set maximum args to 7 for pylint design checker
2023-08-15 00:13:36 +03:00
Lee Miller
67ecbf95d3
Suppress false positives on unsubscriptable-object in connection
2023-08-14 23:59:57 +03:00
Lee Miller
b38e00c0a3
Handle pylint warnings in test_process, suppress fixme globally
2023-08-14 06:05:29 +03:00
Lee Miller
e249e501cc
Fix formatting lint issues
2023-08-14 05:53:20 +03:00
Lee Miller
4f1e14da2a
Finish test_address() using a sample data, generated with pybitmessage
2023-08-14 05:15:09 +03:00
Lee Miller
dd2b0b89af
Improve docstrings in message and structure and add more
2023-08-14 05:15:08 +03:00
Lee Miller
3788b12a28
Complete test_packet()
...
with parsing a prepared message and assertion of validation,
including message.Header; use magic_bytes from shared
assuming the value from the Spec.
Cover message.Message except for repr
2023-08-14 05:14:31 +03:00
Lee Miller
c6d8bd64b2
Bump version to 0.3.2
2023-08-12 06:36:17 +03:00
Lee Miller
6558245a32
Minimal implementation of anti-intersection delay to wait before getdata
2023-08-12 06:35:15 +03:00
Lee Miller
1dfe98cf1f
Test shutting down minode --i2p if there is no running i2pd
2023-08-10 03:55:48 +03:00
Lee Miller
e8dc62f08b
Allow shutting down while starting I2P listener
2023-08-10 03:52:16 +03:00
Lee Miller
761c95d561
Fix SSLError in incoming connection with python 3.10
2023-08-04 00:27:38 +03:00
Lee Miller
42995c5ca7
Check host and port of I2P connections
2023-08-02 23:02:21 +03:00
Lee Miller
c6d0160001
Move s and state into the base
2023-08-02 05:23:33 +03:00
Dmitri Bogomolov
82c4062325
Inherit I2P classes from base util.I2PThread()
2023-08-02 05:23:33 +03:00
Lee Miller
0584956d13
Install and start i2pd in buildbot
2023-08-02 05:23:33 +03:00
Dmitri Bogomolov
7113916347
Try to test with i2pd:
...
- TestProcessI2P runs minode with i2p args with _connection_limit = 4
- TestProcess waits for connections _wait_time sec (120 for TestProcessI2P)
2023-08-02 05:23:33 +03:00
Lee Miller
1d82774c96
Fix unused variable in test_process
2023-08-02 05:17:58 +03:00
Lee Miller
5abaa94d42
Rename pylint section in tox.ini, suppress f-string suggestion for now
2023-08-02 05:11:59 +03:00
Lee Miller
1a1db393c1
Fix some pylint warnings in the tests
2023-08-02 00:17:06 +03:00
Lee Miller
5fc10563f6
Update command line dump
2023-07-30 03:46:04 +03:00
Lee Miller
e95f2b522a
Add basic docstrings
2023-07-30 03:45:59 +03:00
Lee Miller
5a4d6b686e
Replace contact and URLs
2023-07-28 00:11:30 +03:00
Lee Miller
ae727a8327
Don't check for overlimit connections in test_process,
...
leaving the buggy logic as a separate function.
2023-01-23 02:37:04 +02:00
Lee Miller
23769a8bf3
Fix logic in test_process
2023-01-22 23:57:46 +02:00
Lee Miller
d145143e4b
Fix a mistake in Listener.run()
2022-09-23 08:44:55 +03:00
Lee Miller
5462e990dc
Don't log FileNotFoundError while loading I2P destination private key
2022-09-23 08:16:49 +03:00
Lee Miller
140e0139ef
Don't use exc_info if found that IPv6 is not supported while starting listener
2022-09-23 08:11:07 +03:00
Lee Miller
313160aac5
Update tox config: add py310, use requirements in reset to avoid import error
2022-09-23 02:28:58 +03:00
Lee Miller
1e14916355
Update buildbot Dockerfile to focal
2022-09-23 02:15:49 +03:00
Dmitri Bogomolov
30a8a32c92
Lower the level of most log messages, but add exc_info for some
...
- log info on disconnect, debug on disconnected locally
- don't log connections failed because of obvious resons
2022-09-10 19:30:39 +03:00
Dmitri Bogomolov
60dc1b9d08
Lower connection limit on windows
2022-09-10 18:08:17 +03:00
Dmitri Bogomolov
b2722acdf7
Add some tests for message
2022-09-10 18:08:16 +03:00
Dmitri Bogomolov
4d67881576
Add some tests for structure
2022-09-10 18:07:45 +03:00
Lee Miller
066557741b
Add minimal buildbot testing scenario
2022-05-01 18:12:22 +03:00
Lee Miller
1602964b1c
Update tox.ini: adjust py envs for Ubuntu Bionic,
...
separate basic linting and lint depends.
2022-05-01 18:11:51 +03:00
Dmitri Bogomolov
a132556233
Change github test workflow: add coverage and bandit
2021-08-05 16:58:23 +03:00
Dmitri Bogomolov
737b529298
Add bandit linting to tox.ini
2021-08-05 16:58:23 +03:00
Dmitri Bogomolov
03d6361a3d
Disable pylint unused-argumet warning on the signal handler
2021-08-02 20:06:55 +03:00
Dmitri Bogomolov
a93c0f8417
Rename pow module to proofofwork
2021-08-02 20:06:50 +03:00