-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
httpcOpenContext fails after exactly 8 times, consistently #66
Comments
Could you paste your test code? Thanks. |
Sure, here's the contents of main.cpp.
|
This is confirmed fixed on my end. |
It seems to me that this has not been fixed yet: filiphsandstrom/DownloadMii-3DS#24 Looks like everyone is experiencing this; I get return code -660561894 (0xd8a0a01a) when calling @zeta0134's modified example app doesn't work properly either for me, so I'm not sure what's going on. I'm using Ninjhax 1.1 (3DS XL, 9.2.0-20E), and the latest libctru commit (9fec42f). |
Are you absolutely sure that you're using the latest libctru? @zeta0134's test code is working perfectly for me on the same setup with this patch (Ninjhax 1.1, 3DS XL, 9.2.0-20E). Is there some other version of that code that's failing? |
Also can you check return value of every single httpcCloseContext? Maybe your code is leaking contexts. |
Read my comment again. |
It always closes with code 0 on my build, I assume that's what's supposed to happen? Also, now that I'm getting the return codes from
|
@filfat Me too. httpcCloseContext() can fail (return non-zero) and thus leak handles. @celcodioc Yeah, that's correct. Sounds like you might be leaking something/somewhere else. Maybe you could modify 3dmoo to verify that all handles are closed/cleaned up correctly. |
Fix for issue devkitPro#66
When opening http contexts to perform file downloads, every attempt after the 8th fails consistently, with the same error code, somewhere during the call to httpcOpenContext.
To reproduce this, I modified the http download example, and got it to repeatedly download files in a loop. It's hosted here: http://darknovagames.com:1337/3ds/http_context_test.zip. This is fairly straightforward; run the code, press A repeatedly, and after the 8th call to httpcOpenContext(), it fails consistently.
I'm testing on a 3DS XL, using firmware version 9.2.0-20U. This is through Ninjhax; I lack the ability to test on anything else. This is pretty weird; it feels like a resource is not being released somewhere, but httpcCloseContext() is definitely being called.
The text was updated successfully, but these errors were encountered: