virtualhid license check runs only once at startup and is never retried when the network is not up yet

未关闭
#6,035 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp
领域
devtools

调研方向

The license check is tied to Sunshine's startup and the Web UI troubleshooting refresh, which the payload does not name by file. Start by finding where the virtualhid license validation runs at startup and where the Web UI refresh calls into it. Done would mean a failed check caused by network unavailability is retried in the background or on client connect, while a truly invalid license still disables gamepads. Expect a design decision on retry policy before coding.

由索引模型根据 Issue 内容生成。

描述

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

Describe the Bug

Sunshine validates the virtualhid (libvirtualhid) gamepad license only once, at startup.
When Sunshine starts at boot (as a service) before the network is available, the check
fails and every gamepad driver stays disabled for the whole session. The license is never
re-validated once the network comes up.

To get gamepads back I have to log in manually, open the Web UI
(Troubleshooting → virtualhid license) and refresh the validation, or restart the service.

Expected Behavior

Gamepads should work after a normal boot, without any manual action, as long as the
license is valid.

In particular:

  • A failed check caused by the license server being unreachable (no network, DNS not
    ready, timeout) should not be treated the same as a license that is actually invalid.
  • In that case Sunshine should retry the validation automatically: periodically in the
    background until it succeeds, and/or when a client connects.
Additional Context

No response

Host Operating System

Windows

Operating System Version

11

Architecture

amd64/x86_64

Package

Windows - msi installer (recommended)

GPU Type

AMD

GPU Model

9060 XT

GPU Driver/Mesa Version

26.10.1

Capture Method

No response

Apps

Log output

Online logs

No response

主要语言
C++
星标
43k
派生
2.4k
平均合并
1 天 13 小时
30 天内合并 PR
111

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LizardByte/Sunshine 的其他 Issue

查看 LizardByte/Sunshine 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。