Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridged Network TCP Bug on macOS Host #3479

Open
wallpunch opened this issue Apr 9, 2024 · 3 comments
Open

Bridged Network TCP Bug on macOS Host #3479

wallpunch opened this issue Apr 9, 2024 · 3 comments
Labels

Comments

@wallpunch
Copy link

wallpunch commented Apr 9, 2024

Describe the bug
On a macOS host, TCP connections bound to an instance's bridged network interface hang after about 50kb data are received.

To Reproduce

  1. multipass set local.bridged-network=en0
  2. multipass launch -n test --bridged
  3. multipass exec test -- curl https://canonical.com -o /dev/null --interface enp0s2
    (Sometimes need to repeat Step 3 a few times before it hangs. I don't think it's a curl bug as I've seen the same issue using netcat and even sockets directly.)

Expected behavior
All TCP data from the server should be received. (The curl request should complete.)

Logs
bug.log

Additional info

  • macOS 14.2.1

  • multipass version
    multipass 1.13.1+mac
    multipassd 1.13.1+mac

  • multipass info
    Name: test
    State: Running
    Snapshots: 0
    IPv4: 192.168.64.65
    192.168.69.244
    Release: Ubuntu 22.04.4 LTS
    Image hash: 40ea1181447b (Ubuntu 22.04 LTS)
    CPU(s): 1
    Load: 0.27 0.10 0.03
    Disk usage: 1.6GiB out of 4.8GiB
    Memory usage: 147.7MiB out of 962.3MiB
    Mounts: --

  • multipass get local.driver
    qemu

Additional context
The bug does not always occur. It seems more likely to occur when the incoming data arrives very rapidly. It only occurs when more than approximately 50kb are transmitted by the server.

The bug does not occur if the bridged interface is not explicitly bound to (i.e. curl 'https://canonical.com' -o /dev/null never hangs).

@wallpunch wallpunch added bug needs triage Issue needs to be triaged labels Apr 9, 2024
@luis4a0
Copy link
Contributor

luis4a0 commented Apr 15, 2024

Hi @wallpunch, thanks for reporting. This seems to be another case of #3038. Unfortunately, we don't have a solution for this yet. But stay tuned to #3038 for news. Thanks!

@luis4a0 luis4a0 added duplicate and removed needs triage Issue needs to be triaged labels Apr 15, 2024
@luis4a0
Copy link
Contributor

luis4a0 commented Apr 15, 2024

Closing of duplicate of #3038.

@luis4a0
Copy link
Contributor

luis4a0 commented Apr 16, 2024

Reopening because we are not 100% sure it's the same issue as #3038.

@luis4a0 luis4a0 reopened this Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants