Commit Graph
148 Commits
Author SHA1 Message Date
Henrik Rydgård dbe6ec80a0 Fix some bad "for (auto x : y)" usage 2025-04-29 16:46:14 +02:00
Henrik Rydgård da7c99a585 sceNetInet: Implement per-thread errno. Reduce some log levels 2025-04-08 08:31:09 +02:00
Henrik Rydgård 0450728399 Add a super simple session cache for direct DNS lookups.
Dont even try to download the json if dontdownloadjson is set.
2025-04-08 00:41:08 +02:00
Henrik Rydgård 63d78061bb Avoid creating and throw away a request object when we end up reading from the cache 2025-04-07 21:41:06 +02:00
Henrik Rydgård 5f7b698012 Lots of logging and cleanup. 2025-04-07 21:40:52 +02:00
Wang XiangandGitHub b2566aef02 Remove redundant defines that cause compilation errors on LoongArch. 2025-02-06 16:28:52 +08:00
Henrik Rydgård ccf814bcd0 Some shutdown logging improvements 2025-01-28 13:32:31 +01:00
Henrik Rydgård 7fa3b48650 Add extra safeguards, fall back to cached file if download fails. 2025-01-23 13:58:59 +01:00
Henrik Rydgård 7f877bb16b Implement simple file caching. 2025-01-23 13:28:51 +01:00
Henrik Rydgård e4d08407ab Add fake request class for cached responses. 2025-01-23 13:02:06 +01:00
Henrik Rydgård eb719c43e8 HTTP: Replace ProgressBarMode with a new RequestFlags enum 2025-01-23 12:09:56 +01:00
Henrik Rydgård 5c0553031e Bugfix HTTP, oops 2025-01-23 12:06:31 +01:00
Henrik Rydgård 493367c89f More http code cleanup 2025-01-23 10:16:51 +01:00
Henrik Rydgård 12adad0494 HTTP request classes code cleanup - move common things up to the base class 2025-01-23 10:16:51 +01:00
Henrik Rydgård b94b9b077d Refactor away the unnecessary wrapper from sceNetResolver 2025-01-17 09:38:20 +01:00
Henrik Rydgård f2d8d44513 Slightly improved logging (httpserver) 2025-01-14 12:37:56 +01:00
Henrik Rydgård c5cde0f218 Remove "Secondary DNS" as a setting. 2025-01-12 17:25:57 +01:00
Henrik Rydgård 1013be090c sceNetInet: Refactor errno handling and logging, so we always see how it changes 2025-01-12 14:57:51 +01:00
Henrik Rydgård 7e476fedf4 Warning fix, buildfix, logfix 2025-01-11 00:37:36 +01:00
Henrik Rydgård 293c087577 Add a new IPV4 direct DNS lookup function. Allows us to use the configured DNS directly. 2025-01-10 21:37:36 +01:00
Henrik Rydgård 5c7ca3f972 Delete some unused structs 2025-01-10 21:18:45 +01:00
Henrik Rydgård 8c152f69ea Just remove the unused function as a buildfix 2025-01-09 09:42:38 +01:00
Henrik Rydgård 2a0e3b1084 Move out a utility function to Common/Net 2025-01-09 09:23:33 +01:00
Henrik Rydgård 97d5cc7ddf Android buildfix 2025-01-08 12:56:49 +01:00
Henrik Rydgård c3aa0f7452 Centralize socket-related includes, introduce socket_errno
This resolves some weird inconsistentes and include order problems
related to errno. Needed for the next steps.
2025-01-08 12:42:45 +01:00
Henrik Rydgård baf6bcc41e Hide the "Not supported" notice. Minor cleanups 2025-01-08 09:24:32 +01:00
Henrik Rydgård 9b82a9f180 Move all the Inet enum mappers to Core/HLE/NetInetConstants. Other cleanup. 2025-01-07 19:45:16 +01:00
AdamNandHenrik Rydgård f77f3016b7 Add the new DNS config settings, make use of them in NetApctl_InitInfo 2025-01-06 14:38:57 +01:00
AdamNandHenrik Rydgård 98dba643f4 Just the sceUtility changes from ANR2ME's branch 2025-01-06 14:38:45 +01:00
Henrik Rydgård 70042e0906 Add comment 2025-01-05 20:43:29 +01:00
ANR2MEandHenrik Rydgård f500726762 Changing httpCode to statusLine 2025-01-05 19:24:09 +01:00
ANR2MEandHenrik Rydgård 0012818eb7 Implement sceHttp library 2025-01-05 19:14:15 +01:00
Henrik Rydgård 4dd3621fa0 Remove some unnecessary <algorithm> includes. 2024-12-18 17:04:27 +01:00
Henrik Rydgård 0e6fc8e0e3 Assorted warning fixes 2024-11-28 15:02:26 +01:00
Henrik Rydgård 107bd01536 Fix some issues with clicking touch buttons using the mouse after the hover change.
Increase a buffer size.
2024-11-22 10:31:10 +01:00
Henrik Rydgård 305453b52d Buffer: Optimize scanning for the next crlf 2024-11-22 10:31:07 +01:00
Henrik Rydgård d1d7ddf310 Use CharQueue in Buffer 2024-11-22 00:02:50 +01:00
Henrik Rydgård 59a56d66c7 Add a "reason" argument to sleep_ms().
sleep_ms() should generally be avoided when possible. This can be used to try
to track down unnecessary sleeps by adding some logging.

This commit on its own doesn't actually add any logging.
2024-11-21 15:28:51 +01:00
Henrik Rydgård fb4c1fb63f Reporting: Use g_DownloadManager instead of using a custom thread solution 2024-10-28 17:02:03 +01:00
Henrik Rydgård cf678a1aa6 JIT: Allow more blocks to be stored in the cache. Also, add margin to the IsFull check. 2024-10-28 17:02:03 +01:00
Henrik Rydgård e51c58716b Fix minor code issues flagged by PVS-Studio and reported by alphrixus. 2024-10-10 14:10:30 +02:00
Henrik Rydgård 4d6905672e Bunch more linting 2024-10-10 11:57:10 +02:00
Henrik Rydgård e0c12c9547 More lint warning fixes 2024-10-10 10:52:45 +02:00
Herman SemenovandHenrik Rydgård 45429bcd85 [Common/Data/File/Input/Net/Serialize/System/UI] Using for based loop C++17 and replaced on structured binding map C++17 2024-09-17 17:42:08 +02:00
Henrik Rydgård eccd7f3767 More const/static-ification 2024-09-17 15:22:37 +02:00
Henrik RydgårdandGitHub e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
Henrik Rydgård 5b717cab04 HTTPClient: Fix issue with HTTP redirects 2024-05-28 11:16:10 +02:00
Herman Semenov f75d7d13a0 [Net/Web] Fixed strict reduce types to 32 bit sizes, changed to memsize 2024-05-11 19:43:13 -05:00
Henrik Rydgård c5791764d8 Make the i18n T function use std::string_view
Buildfixes, crashfixes

One more

Android buildfix

Buildfix Qt
2024-02-12 18:44:39 +01:00
Henrik Rydgård deffbea75f HTTPClient: Fix socket leak on connect failure 2024-01-23 11:05:03 +01:00