summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorShadowNinja <ShadowNinja@users.noreply.github.com>2022-01-01 16:44:56 -0500
committerGitHub <noreply@github.com>2022-01-01 22:44:56 +0100
commit29d2b2ccd06cdd831a7fac66928bfa612003945c (patch)
tree408d8930084bab87a26af73aa4548399756cebf2 /src/client
parent544b9d5c72f690d6a729053616d26e023f7e0e28 (diff)
downloadminetest-29d2b2ccd06cdd831a7fac66928bfa612003945c.tar.gz
minetest-29d2b2ccd06cdd831a7fac66928bfa612003945c.tar.bz2
minetest-29d2b2ccd06cdd831a7fac66928bfa612003945c.zip
Print announce error response (#11878)
Fix HTTPFetch caller and request ID to 64 bits Check that allocated caller ID is not DISCARD Print body if serverlist request returns error Don't print control characters from HTTP responses Document special HTTPFetch caller IDs Allow unicode to be printed
Diffstat (limited to 'src/client')
-rw-r--r--src/client/clientmedia.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/clientmedia.h b/src/client/clientmedia.h
index aa7b0f398..c297d737f 100644
--- a/src/client/clientmedia.h
+++ b/src/client/clientmedia.h
@@ -174,12 +174,12 @@ private:
s32 m_uncached_received_count = 0;
// Status of remote transfers
- unsigned long m_httpfetch_caller;
- unsigned long m_httpfetch_next_id = 0;
+ u64 m_httpfetch_caller;
+ u64 m_httpfetch_next_id = 0;
s32 m_httpfetch_active = 0;
s32 m_httpfetch_active_limit = 0;
s32 m_outstanding_hash_sets = 0;
- std::unordered_map<unsigned long, std::string> m_remote_file_transfers;
+ std::unordered_map<u64, std::string> m_remote_file_transfers;
// All files up to this name have either been received from a
// remote server or failed on all remote servers, so those files