Skip to content

Commit

Permalink
print warning when we run out of tunnel IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 10, 2020
1 parent 78bdf49 commit 1ea5b13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions broker/src/tunneldigger_broker/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ def create_tunnel(self, broker, address, uuid, remote_tunnel_id, client_features
try:
tunnel_id = self.tunnel_ids.pop()
except KeyError:
logger.warning("No more tunnel IDs available -- {} active tunnels".format(len(self.tunnels)))
return False

logger.info("Creating tunnel %s with id %d." % (tunnel_str, tunnel_id))
Expand Down

0 comments on commit 1ea5b13

Please sign in to comment.