WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Multiple simultaneous ping do not work

Open GoodMirek opened this issue 10 years ago • 9 comments

  • A brief description Opening a powershell admin window, running bash and then running ping works fine. Opening second window the same way, while keeping the first window opened with running ping, and running another ping in the second window causes errors in both windows.
  • Expected results Multiple pings shall work simultaneously.
  • Actual results (with terminal output if applicable)
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument
ping: recvmsg: Invalid argument
  • Your Windows build number 14393.351
  • Steps / All commands required to reproduce the error from a brand new installation
  1. Open powershell admin window1
  2. Run bash in window1
  3. Run ping google.com in window1
  4. Open powershell admin window2
  5. Run bash in window2
  6. Run ping google.com in window2; running ping time.nist.gov produces the same result
  • Strace of the failing command
  • Required packages and commands to install WSL

See our contributing instructions for assistance.

GoodMirek avatar Oct 30 '16 21:10 GoodMirek

@GoodMirek I realize this in no way helps your current build of Windows; but I do not experience this issue running on build 14955. Perhaps someone else can confirm this is a problem with your build of Windows and not on 14955.

andrewfinnell avatar Oct 30 '16 21:10 andrewfinnell

Guessing this was quietly addressed in 14926, though I don't think there is/was an issue# for the problem specifically.

therealkenc avatar Oct 30 '16 22:10 therealkenc

@therealkenc I'm still able to reproduce this on new builds, there's still an issue here. Tagging @sunilmut so he is aware.

benhillis avatar Oct 31 '16 15:10 benhillis

@GoodMirek Thanks for reporting the issue and thanks @benhillis for tagging. It looks like this is reproducible even with a single ping. I have opened a bug to track this.

sunilmut avatar Oct 31 '16 17:10 sunilmut

After upgrade to 14955 I can confirm that simultaneous ping works. However, ping occassionally reports incorrect round trip time 0.000ms, see below; correct value is definitelly over 1ms, rather 10+ ms. I am connected via home wifi, which is connected via another wifi to a local ISP, thus it is technically impossible to have lower than 1 ms rounf trip time for ping to google.com. Also, the correct value is what real Linux shows on the same hardware and internet connection. Sometimes the incorrect value is not plain zero, but rather around half a millisecond. I did not use preload option of ping.

ping google.com
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=94 ttl=50 time=23.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=95 ttl=50 time=25.3 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=96 ttl=50 time=0.000 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=97 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=98 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=99 ttl=50 time=16.2 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=100 ttl=50 time=0.000 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=101 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=102 ttl=50 time=16.1 ms
64 bytes from prg03s05-in-f14.1e100.net (172.217.23.206): icmp_seq=103 ttl=50 time=0.519 ms

GoodMirek avatar Oct 31 '16 22:10 GoodMirek

@GoodMirek - The 0ms ping issue has already been fixed and the fix barely missed the 14955 build. It should be in the next release for sure. If in the next release you are still seeing 0ms ping, do let us know. As for the ping: recvmsg: Invalid argument error, I think that is intermittent and still exists. Thanks for all the feedback and trying out WSL!

sunilmut avatar Oct 31 '16 22:10 sunilmut

The 0ms ping fix is out in build 14986.

14986 Release Notes

russalex avatar Dec 08 '16 01:12 russalex

The original issue has been fixed internally (recvmsg EINVAL).

JasonLinMS avatar Jan 11 '17 22:01 JasonLinMS

Closing since this has been fixed in the Insider builds.

JasonLinMS avatar Mar 17 '17 00:03 JasonLinMS