aboutsummaryrefslogtreecommitdiff
path: root/src/httpfetch.cpp
AgeCommit message (Collapse)Author
2015-10-14Rename macros with two leading underscoresShadowNinja
These names are reserved for the compiler/library implementations.
2015-10-14Always use errorstream for DEBUG_EXCEPTION_HANDLERShadowNinja
2015-08-23Clean up threadingShadowNinja
* Rename everything. * Strip J prefix. * Change UpperCamelCase functions to lowerCamelCase. * Remove global (!) semaphore count mutex on OSX. * Remove semaphore count getter (unused, unsafe, depended on internal API functions on Windows, and used a hack on OSX). * Add `Atomic<type>`. * Make `Thread` handle thread names. * Add support for C++11 multi-threading. * Combine pthread and win32 sources. * Remove `ThreadStarted` (unused, unneeded). * Move some includes from the headers to the sources. * Move all of `Event` into its header (allows inlining with no new includes). * Make `Event` use `Semaphore` (except on Windows). * Move some porting functions into `Thread`. * Integrate logging with `Thread`. * Add threading test.
2015-05-19Replace instances of std::map<std::string, std::string> with StringMapkwolekr
Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators
2015-04-27Revert the upper-case PROJECT_NAME nonsense that was part of #2402sfan5
2015-04-01Move globals from main.cpp to more sane locationsCraig Robbins
Move debug streams to log.cpp|h Move GUI-related globals to clientlauncher Move g_settings and g_settings_path to settings.cpp|h Move g_menuclouds to clouds.cpp|h Move g_profiler to profiler.cpp|h
2015-03-27Clean up and tweak build systemShadowNinja
* Combine client and server man pages. * Update unit test options and available databases in man page. * Add `--worldname` to man page. * Fix a bunch of places where `"Minetest"` was used directly instead of `PROJECT_NAME`. * Disable server build by default on all operating systems. * Make `ENABLE_FREETYPE` not fail if FreeType isn't found. * Enable LevelDB, Redis, and FreeType detection by default. * Remove the `VERSION_PATCH_ORIG` hack. * Add option to search for and use system JSONCPP. * Remove broken LuaJIT version detection. * Rename `DISABLE_LUAJIT` to `ENABLE_LUAJIT`. * Rename `minetest_*` variables in `version.{h,cpp}` to `g_*`. * Clean up style of CMake files.
2015-03-07For usages of assert() that are meant to persist in Release builds (when ↵Craig Robbins
NDEBUG is defined), replace those usages with persistent alternatives
2015-03-05Use std::queue for HTTPFetchRequest and std::vector for log_output instead ↵Loic Blot
of std::list
2015-02-12Remove unused variables to make clang happyLoic Blot
2014-09-18Use configured bind_address for HTTPFetchShadowNinja
2014-09-18Reduce indentation of HTTPFetchOngoingShadowNinja
Also clean up some related things.
2014-06-30Add support for multipart/form-data to HTTPFetch for server announcingShadowNinja
2014-06-29Add support for Android 2.3+sapier
There have been plenty of ppl involved in creating this version. I don't wanna mention names as I'm sure I'd forget someone so I just tell where help has been done: - The partial android versions done by various ppl - Testing on different android devices - reviewing code (especially the in core changes) - testing controls - reviewing texts A big thank you to everyone helping this to be completed!
2014-04-27Remove dependency on marshal and many other async changesShadowNinja
This makes a number of changes: * Remove the dependency on marshal by using string.dump and loadstring. * Use lua_tolstring rather than having Lua functions pass string lengths to C++. * Move lua_api/l_async_events.* to cpp_api/s_async.*, where it belongs. * Make AsyncWorkerThread a child of ScriptApiBase, this removes some duplicate functionality. * Don't wait for async threads to shut down. (Is this safe? Might result in corruption if the thread is writing to a file.) * Pop more unused items from the stack * Code style fixes * Other misc changes
2014-04-09Add support for named threads (atm linux only)sapier
2014-01-23Include system info in the HTTP user agent on WindowsSfan5
2014-01-16Deindent HTTPFetchRequest::HTTPFetchRequest()ShadowNinja
2014-01-15Make default User-agent follow RFC 2616ShadowNinja
2014-01-15Fix building with MinGWSfan5
2014-01-10Fix check for max_fd == -1 should actually be max_fd != -1sapier
2014-01-10Make MutexQueue use jsemaphore for signalingsapier
2014-01-07Send long announce as POST, show OS in useragentproller
Add lag reporting to masterserver (average dtime) StyledWriter -> FastWriter in masterserver announce
2013-12-24Use sleep_ms instead of select in httpfetch when max_fd == -1, fixes WSAEINVALKahrl
2013-12-16Fix broken httpfetch due to SimpleThread removalsapier
2013-12-16Fix MSVC compiling issueBlockMen
2013-12-15Replace SimpleThread by JThread now implementing same featuressapier
2013-12-13Replace any direct curl usage by httpfetchsapier
2013-12-13Use httpfetch_async in serverlist announce codeKahrl
2013-12-13Implement httpfetch module and initialize it from main()Kahrl
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.)