games-on-whales / wolf

Stream virtual desktops and games running in Docker
https://games-on-whales.github.io/wolf/stable/
MIT License
292 stars 20 forks source link

Connection is not properly disestablished upon ending a session #47

Open a-priestley opened 9 months ago

a-priestley commented 9 months ago

Use netstat to illustrate the issue. When you first start streaming using moonlight: sudo nsenter -t "$(docker inspect -f '{{.State.Pid}}' "[WOLF_CONTAINER_ID]")" -n netstat -anup

Within the list of records will be an entry describing the established connection for wolf: udp 0 0 192.168.0.207:53602 192.168.0.141:44965 ESTABLISHED 1404/wolf

Terminate the stream session and issue the command again. The record will still be present.

The issue is highlighted when creating a new stream with the same client -- another connection will be established without terminating the previous one:

udp        0      0 192.168.0.207:53602     192.168.0.141:44965     ESTABLISHED 1404/wolf
udp        0      0 192.168.0.207:39660     192.168.0.141:58315     ESTABLISHED 1404/wolf

The connections will release upon stopping the wolf container.