little-red-rover / lrr-ros

A ROS package implementing communication with Little Red Rover
https://www.little-red-rover.com
GNU Lesser General Public License v2.1
1 stars 0 forks source link

Docker Desktop stops forwarding packets on exposed ports after a short time #10

Closed usedhondacivic closed 1 week ago

usedhondacivic commented 1 week ago

On Docker Desktop for mac / windows, forwarded ports work initially and then stop receiving and transmitting data. The drop is often asymmetrical, i.e. commands can be sent to the rover but no data is received, or data can be received by not sent. Sometimes both fail. Restarting docker engine sometimes fixes the problem, but not always. This does not occur when using Docker CE on Ubuntu.

Possibly related: https://github.com/uhppoted/uhppote-simulator/issues/9 https://github.com/docker/for-win/issues/14376 https://github.com/docker/for-win/issues/14384

Notes: Downgrading Docker Desktop to v4.24.1 makes incoming data work consistently, but outgoing traffic drops out after some time

usedhondacivic commented 1 week ago

Seems to be a consistent problem for WSL across many years: https://www.reddit.com/r/docker/comments/zeao2x/comment/iz5s4fb/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button https://blog.alexbal.com/2022/01/26/12/

usedhondacivic commented 1 week ago

More: https://github.com/OpenC3/cosmos/issues/654 https://github.com/docker/for-win/issues/8861 https://github.com/moby/vpnkit/issues/587#issuecomment-1513184793

usedhondacivic commented 1 week ago

Resolved by downgrading Docker Desktop to v4.5.1 :( https://github.com/docker/for-win/issues/8861#issuecomment-1858308673

usedhondacivic commented 1 week ago

Resolved by switching from UDP communication to TCP communication, because Docker Desktop handles TCP properly.