Skip to content

Commit

Permalink
fix: conn upgrade detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Arqu committed Aug 28, 2023
1 parent 494d502 commit 1e29b44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion netsim/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def run(nodes, prefix, args, debug=False, full_debug=False, visualize=False):
if debug:
# reduce logging, track only those of interest
# magicsock::endpoint required for iroh integration tests
env_vars['RUST_LOG'] = 'error,iroh_net::hp::magicsock::endpoint=debug'
env_vars['RUST_LOG'] = 'error,iroh_net::magicsock::endpoint=debug'
if full_debug:
env_vars['RUST_LOG'] = 'debug'

Expand Down
2 changes: 1 addition & 1 deletion netsim/netsim_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def parse_magic_iroh_client(lines):
is_ok += 1
if 'Transferred' in line and 'seconds' in line:
is_ok += 1
if 'sending UDP: Some(' in line and 'DERP: None' in line:
if 'sending UDP: Some(' in line and 'DERP:' in line:
s['conn_upgrade'] = 'true'
s['transfer_success'] = 'true' if is_ok == 2 else 'false'
return s
Expand Down

0 comments on commit 1e29b44

Please sign in to comment.