Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to change UPnP timeout setting #18867

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anr2me
Copy link
Collaborator

@anr2me anr2me commented Feb 15, 2024

In case their UPnP device took longer to be detected.

Will need to get feedbacks first from user who reported that their iPhone 12 pro can't detect UPnP device anymore (might be related to newer iOS version?) https://forums.ppsspp.org/showthread.php?tid=29904

PS: If the reporter can solve the issue by increasing the timeout, i'll probably need to increase the default value too, a long with this PR.

Edit: Apparently it wasn't timeout issue, may be miniupnpc no longer compatible with newer iOS :( since it (said to) works on PC on the same network/router.
Or may be we just need to update the miniupnp library?

@@ -865,6 +865,7 @@ static const ConfigSetting networkSettings[] = {
ConfigSetting("ForcedFirstConnect", &g_Config.bForcedFirstConnect, false, CfgFlag::PER_GAME),
ConfigSetting("EnableUPnP", &g_Config.bEnableUPnP, false, CfgFlag::PER_GAME),
ConfigSetting("UPnPUseOriginalPort", &g_Config.bUPnPUseOriginalPort, false, CfgFlag::PER_GAME),
ConfigSetting("UPnPTimeout", &g_Config.iUPnPTimeout, 2000, CfgFlag::PER_GAME),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm.. since upnp timeout usually external issue, may be not supposed to be PER_GAME setting.

@anr2me
Copy link
Collaborator Author

anr2me commented Feb 17, 2024

We probably just need to update our miniupnp library, may be.

@hrydgard
Copy link
Owner

Hm, ok. we can leave this sitting around for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants