-
Notifications
You must be signed in to change notification settings - Fork 251
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
netcon update #588
base: main
Are you sure you want to change the base?
netcon update #588
Conversation
A thought just occurred to me, plain HTTP is all but extinct, replaced with HTTPS. It might be a good idea to implement it at some point. |
httplib can handle HTTPS although on some platform this can be complicated - it uses OpenSSL, and Windows may has large dependency footprint. |
0ae9d65
to
10b5945
Compare
I'm also scared of shipping OpenSSL but we may not cut it, doing plain HTTP is not really recommended anymore :/ |
Cleanup unused files, isolate submodule.
Inetgetfile has own HTTP parsing code which is pretty outdated. New HttpClient is based on external cpp-httplib library which provides up-to-date functionality for HTTP interactions.
Fixes memory corruption and provides more robust way to fetch and parse gameserver list. Now client working with list in memory instead of temporary file.
Rename strupr() to _strupr() to silence some MSVC compiler warnings.
Don't block on timeouts, failures etc. Rewritten D3::HttpClient to reflect changes.
10b5945
to
1cfb1d7
Compare
Log should reveal real error. Specifically, www.planetdescent.com leads to IGN site instead of ZIP file, and zip-extractor fails to extract downloaded html-page. I've tested on www.descentforum.net and www.dfiles.de, usually they should works. |
When testing on server DF.NET Tsetsefly3 / mission Coliseum, selecting DescentForum.net link, a crash happens: log
Call stack
In VCPKG build on Arch Linux |
Pull Request Type
Description
Replace old inetgetfile with new httpclient that allows download missions and other files via cpp-httplib library. That fixes thread safety errors in Descent3 Online netcon module. Reactivated ability download missing mission files from game browser.
Related Issues
Screenshots (if applicable)
Checklist
Additional Comments