summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/NetworkSingleton.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-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
* Cleanup unneeded globals (#4736)peterbell102020-05-101-1/+1
|
* Fix cUrlClient leak (#4125)peterbell102018-02-201-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.
* Removed unneeded includes (#3902)Lukas Pioch2017-08-061-1/+0
|
* Remove double includes part 2 (#3890)peterbell102017-08-031-1/+0
|
* Remove smart pointer macrospeterbell102017-07-211-2/+2
|
* NetworkSingleton: Fixed a throw warning in VS2017. (#3792)Mattes D2017-06-221-1/+1
| | | Also fixed the misleading name.
* Replace evdns with getaddrinfo and getnameinfo (#3766)peterbell102017-06-151-35/+8
|
* Self tests (#3242)Mattes D2016-06-261-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.
* cNetwork: Fixed possible hang when terminating immediately after init.Mattes D2016-06-181-0/+8
|
* Fixed and improved restartingTiger Wang2015-08-201-5/+6
| | | | | Restarts are now an actual, close-as-possible to application exit+reopen.
* NetworkSingleton: LibEvent thread is joined properly on server exit.Mattes D2015-02-181-3/+3
|
* Added network termination called at app exit.Mattes D2015-01-271-1/+10
| | | | This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
* cNetwork: Fixed race conditions with lookups; proper shutdown.Mattes D2015-01-221-27/+17
|
* cNetwork: Split the main cpp file into several files.Mattes D2015-01-221-0/+6
|
* cNetwork: Split cNetworkSingleton to a separate file.Mattes D2015-01-221-0/+138