Skip to content

Commit

Permalink
limit the max upload and connections
Browse files Browse the repository at this point in the history
Signed-off-by: Date Huang <[email protected]>
  • Loading branch information
tjjh89017 committed Mar 29, 2024
1 parent e5736d9 commit 178f44d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/ezio_add_torrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
stub = ezio_pb2_grpc.EZIOStub(channel)

request = ezio_pb2.AddRequest()
request.max_uploads = 2
request.max_connections = 3
request.save_path = sys.argv[2]
with open(sys.argv[1], 'rb') as f:
request.torrent = f.read()
Expand Down
2 changes: 2 additions & 0 deletions utils/ezio_add_torrent_seed.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
stub = ezio_pb2_grpc.EZIOStub(channel)

request = ezio_pb2.AddRequest()
request.max_uploads = 1
request.max_connections = 2
request.save_path = sys.argv[2]
request.seeding_mode = True
with open(sys.argv[1], 'rb') as f:
Expand Down

0 comments on commit 178f44d

Please sign in to comment.