diff options
author | Jan Lehnardt <jan@apache.org> | 2021-08-09 11:11:04 +0200 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2021-08-09 13:32:57 +0200 |
commit | cc05c03866d88bdaac6036a4cdcd55c92833302f (patch) | |
tree | f1211d7a6ad79b843e21f2cb85fb51f3dc5729e9 | |
parent | ba638783b5d87b855939dae69fd63ffd41cb5ed7 (diff) | |
download | couchdb-cc05c03866d88bdaac6036a4cdcd55c92833302f.tar.gz |
fix(dev/run): allow -n > 5
-rwxr-xr-x | dev/run | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -367,7 +367,7 @@ def get_ports(ctx, idnode): def get_available_ports(num): ports = [] - while len(ports) < num: + while len(ports) < num + 1: with contextlib.closing( socket.socket(socket.AF_INET, socket.SOCK_STREAM) ) as soc: |