Skip to content
Snippets Groups Projects
  1. Dec 14, 2013
  2. Dec 13, 2013
    • ShadowNinja's avatar
      Remove support for optdepends.txt · 83853ccd
      ShadowNinja authored
      83853ccd
    • Kahrl's avatar
      Don't call curl_global_init twice · e275b709
      Kahrl authored
      e275b709
    • sapier's avatar
      Replace any direct curl usage by httpfetch · 0d990bd1
      sapier authored
      0d990bd1
    • Kahrl's avatar
      Use httpfetch_async in serverlist announce code · b0313554
      Kahrl authored
      b0313554
    • Kahrl's avatar
      Implement urlencode and urldecode · 0a903e69
      Kahrl authored
      0a903e69
    • Kahrl's avatar
      Rewrite client media download and support hash-based remote download · 0404bbf6
      Kahrl authored
      Move most of the media-related code in client.cpp into a new class
      ClientMediaDownloader (clientmedia.cpp, clientmedia.h). Among other
      things, this class does the following things:
      
      - Download [remote_server][sha1] instead of [remote_server][name]. This
      is to support servers that provide the same file name with different
      contents.
      - Initially fetch [remote_server]index.mth. This file should follow the
      Minetest Hashset format (currently version 1) and contain a list of SHA1
      hashes that exist on the server.
      - The list of needed SHA1s is uploaded (via HTTP POST) when index.mth is
      requested, so servers can optionally narrow down the list to the needs
      of the client.
      - If index.mth is missing (HTTP response code 404), we enter compat mode,
      fetching [remote_server][name] as before this commit.
      - remote_server can now contain multiple servers, separated by commas.
      The downloader code attempts to split requests between the different
      servers, as permitted by each server's index.mth. If one server claims
      to have a file but actually doesn't (or something fails), we ask a
      different server that also claims to have it.
      - As before, when none of the remote servers provide a particular
      file, we download it via the conventional method, i.e. using
      the minetest protocol: TOSERVER_REQUEST_MEDIA / TOCLIENT_MEDIA.
      - Bugfix: Every downloaded file's SHA1 is now verified against the SHA1
      announced by the minetest server (before loading it and inserting it
      into the file cache).
      - Bugfix: Only send TOSERVER_RECEIVED_MEDIA when we actually have all
      media. This should fix #863.
      0404bbf6
    • Kahrl's avatar
      Implement httpfetch module and initialize it from main() · 0ea3e6db
      Kahrl authored
      Add curl_parallel_limit setting that will replace media_fetch_threads in
      a later commit.
      
      Fix a typo in MutexedQueue::pop_back() that made it impossible to compile
      code that used this function. (Noticed this while implementing httpfetch.)
      0ea3e6db
    • Ilya Zhuravlev's avatar
  3. Dec 12, 2013
  4. Dec 11, 2013
  5. Dec 09, 2013
  6. Dec 08, 2013
  7. Dec 07, 2013
  8. Dec 06, 2013
  9. Dec 05, 2013
  10. Dec 04, 2013
  11. Dec 03, 2013
  12. Dec 01, 2013
Loading