Session stuck in "Streaming paused for Desktop" indefinitely after abnormal UDP disconnect (Windows) — blocks reconnection even over a different network path
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- cpp
- Área
- backend, networking
Línea de trabajo
Start by tracing Sunshine's Windows session and UDP socket handling for the paused streaming state; the issue does not name source files or tests, so locate the code that logs UDP receive errors and changes the tray state. Reproduce or inspect how an abnormal disconnect affects later connection attempts and whether the paused session is cleared or resumed. Done means a dropped session can recover or time out so new connections are accepted; add regression coverage for that behavior.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is there an existing issue for this?
- I have searched the existing issues
Is your issue described in the documentation?
- I have read the documentation
Is your issue present in the latest beta/pre-release?
I'm too lazy to test
(Reproduced on latest stable v2026.914.233613. Have not yet re-tested against the v2026.1115/v2026.1116 pre-releases since the host was deliberately left in the stuck state for diagnostics before filing this.)
Describe the Bug
After an abnormal (non-graceful) network disconnect, the session gets stuck in the "paused" state shown by the tray icon/notification (Streaming paused for Desktop) and never recovers. Every subsequent Moonlight connection attempt fails, even after switching the client to a completely different network path (see below), until Sunshine is manually restarted.
Timeline from today:
- Streaming normally over a Tailscale connection (confirmed direct P2P via
tailscale ping, not DERP-relayed) to a Windows host. - At the time, the client was connected over a slow/congested university Wi-Fi network (not the client's usual home network). The log shows a UDP receive error:
(Korean for the localized Windows socket error 10061 / WSAECONNREFUSED — i.e. an ICMP port-unreachable was received back, meaning the destination UDP port the server was sending to was no longer bound on the client side.)[2026-11-16 09:43:33.925]: Error: Couldn't receive data from udp socket: 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다 - ~54s later, a new session did start successfully:
[2026-11-16 09:44:27.712]: Info: Display device configuration is disabled. Reverting any active display device configuration. [2026-11-16 09:44:28.225]: Info: New streaming session started [active sessions: 1] [2026-11-16 09:44:29.424]: Info: Creating encoder [hevc_nvenc] [2026-11-16 09:44:29.480]: Info: NvEnc: created encoder v1301 HEVC P4 async two-pass rfi spatial-aq - At some point after that, the connection dropped again and this time it did not recover. The Windows notification area shows "Streaming paused for Desktop" with the paused-state tray icon, and it has stayed that way continuously for 11+ hours (still stuck as of filing this issue).
- While stuck, we tried reconnecting over a completely different network path (client Wi-Fi → LAN switch → host, instead of Tailscale) — same failure, no change. This rules out the network/VPN path as the cause: whatever got stuck is host-side session state, not connectivity.
sunshine.loghas logged nothing (no new session/error/NVENC lines) since the 09:44 entries above, even though we attempted multiple reconnects hours later over the different network path. So the host-side session/socket layer isn't even acknowledging new connection attempts while stuck in this paused state.- Sunshine has deliberately not been restarted yet, in case additional diagnostics are wanted.
This looks related to the general "session stuck in paused state" bug class (e.g. #4801, which was about a different trigger — unpairing the last device), but the trigger here is a plain network drop, not unpairing, and there appears to be no timeout that ever expires/clears the paused session on its own.
Expected Behavior
Either:
- The paused session should time out after some grace period if the client never reconnects, returning Sunshine to idle and accepting new connections normally, or
- A reconnect attempt (even from a different IP/network path) should be able to properly resume or replace the stuck paused session instead of silently failing.
Additional Context
- GPU encoder session count was confirmed at 0 via
nvidia-smi --query-gpu=encoder.stats.sessionCountwhile stuck, so this is not an NVENC concurrent-session-limit issue. tailscale pingto the client during the working period showed a direct P2P connection (pong from <client> via <public-ip>:<port>), not a DERP relay, so this isn't a Tailscale relay/bandwidth issue either.- Happy to gather more diagnostics (Process Explorer handles, ETW trace, etc.) on request — the host is currently still in the stuck state.
Host Operating System
Windows
Operating System Version
Windows 11 Pro 25H2, Build 26200.9974
Architecture
amd64/x86_64
Package
Windows - msi installer (recommended)
GPU Type
NVIDIA
GPU Model
GeForce RTX 4070 SUPER
GPU Driver/Mesa Version
617.42
Capture Method
Desktop Duplication API (Windows)
Log output
[2026-11-16 09:20:56.490]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-11-16 09:20:56.491]: Info: Creating encoder [hevc_nvenc]
[2026-11-16 09:20:56.546]: Info: NvEnc: created encoder v1301 HEVC P4 async two-pass rfi spatial-aq
[2026-11-16 09:43:33.925]: Error: Couldn't receive data from udp socket: 대상 컴퓨터에서 연결을 거부했으므로 연결하지 못했습니다
[2026-11-16 09:44:27.712]: Info: Display device configuration is disabled. Reverting any active display device configuration.
[2026-11-16 09:44:28.225]: Info: New streaming session started [active sessions: 1]
[2026-11-16 09:44:29.424]: Info: Requested frame rate [60/1 exactly 60 fps]
[2026-11-16 09:44:29.424]: Info: Creating encoder [hevc_nvenc]
[2026-11-16 09:44:29.480]: Info: NvEnc: created encoder v1301 HEVC P4 async two-pass rfi spatial-aq
No further session/error/NVENC log lines appear after this, despite multiple reconnect attempts hours later over a different network path.
- Lenguaje dominante
- C++
- Estrellas
- 43k
- Forks
- 2.4k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LizardByte/Sunshine
-
Linux keyboard backend has no mapping for VK_ABNT_C1 (ABNT2 dedicated `/ ?` key) — key is silently droppedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
LizardByte/Sunshine#6051 · 2 comentarios ·
-
PIN pairing fails with "Missing CSRF token" - web UI never fetches/attaches the tokenQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
LizardByte/Sunshine#5467 · 2 comentarios ·
-
Virtual HID Driver License notifications appearing even though Enable Gamepad Input is uncheckedAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
LizardByte/Sunshine#6222 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 47/100
LizardByte/Sunshine#6208 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
LizardByte/Sunshine#6202 · 1 comentario ·
Todos los issues de LizardByte/Sunshine
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
Los mantenedores suelen responder en 2 días
-
bug data-types
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ClickHouse/clickhouse-cpp#645 ·
Los mantenedores suelen responder en 1 día
-
Type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openscad/openscad#7360 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
connector-maintenance
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
gettakaro/connectors#1067 ·
Los mantenedores suelen responder en 1 día