summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/NetworkSingleton.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-2/+2
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2020-05-10Cleanup unneeded globals (#4736)peterbell101-1/+1
2018-02-20Fix cUrlClient leak (#4125)peterbell101-12/+12
Fixes #4040 * The TCP connection is now shutdown after OnBodyFinished * Any open connections are closed when cNetworkSingleton::Terminate() is called. * Removed ownership cycles in cUrlClientRequest * Added a check to the test to ensure there are no leaks.
2017-08-06Removed unneeded includes (#3902)Lukas Pioch1-1/+0
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2017-07-21Remove smart pointer macrospeterbell101-2/+2
2017-06-22NetworkSingleton: Fixed a throw warning in VS2017. (#3792)Mattes D1-1/+1
Also fixed the misleading name.
2017-06-15Replace evdns with getaddrinfo and getnameinfo (#3766)peterbell101-35/+8
2016-06-26Self tests (#3242)Mattes D1-1/+1
* SelfTests: Added a cEvent stress-test. * cNetwork: Fixed startup event hang. The original code used to hang with a ~ 1:50000 chance, because on Linux the cEvent was destroyed before its "Set()" returned.
2016-06-18cNetwork: Fixed possible hang when terminating immediately after init.Mattes D1-0/+8
2015-08-20Fixed and improved restartingTiger Wang1-5/+6
Restarts are now an actual, close-as-possible to application exit+reopen.
2015-02-18NetworkSingleton: LibEvent thread is joined properly on server exit.Mattes D1-3/+3
2015-01-27Added network termination called at app exit.Mattes D1-1/+10
This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
2015-01-22cNetwork: Fixed race conditions with lookups; proper shutdown.Mattes D1-27/+17
2015-01-22cNetwork: Split the main cpp file into several files.Mattes D1-0/+6
2015-01-22cNetwork: Split cNetworkSingleton to a separate file.Mattes D1-0/+138