Commit Graph

73 Commits

Author SHA1 Message Date
Karthik Ravi Shankar b3889585a1
Revert "Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota" 2019-03-12 12:25:38 -07:00
Karthik Ravi Shankar f7dd48b2b6 Moving ::grpc::ResourceQuota to ::grpc_impl::ResouceQuota
This change moves ResourceQuota class fron grpc namespace to grpc_impl
namespace.
2019-03-06 10:12:23 -08:00
yang-g e75fc243da change tests to use the new class instead of grpc_test_init 2018-11-30 08:57:38 -08:00
Vijay Pai 16f738359d Make sure that we actually saw some resource exhaustion if applicable 2018-08-15 16:30:59 -07:00
Vijay Pai 14ad82a76d Create a new method handler for resource exhaustion and tie into thread mgr 2018-08-14 16:23:21 -07:00
Noah Eisen 58e0cbf9fb Enable the performance-* clang-tidy checks 2018-06-14 14:58:09 -04:00
Vijay Pai c90a85649b Change grpc++ references in names to grpcpp 2018-03-08 22:04:59 -08:00
Vijay Pai da69355f30 C++ize gpr_thread as grpc_core::Thread, make it 2-phase init (construct/Start) 2018-02-19 22:39:58 -08:00
Vijay Pai c745690caf Internalize gpr_thd except for id and currentid 2018-02-12 11:44:52 -08:00
Noah Eisen be82e64b3d Autofix c casts to c++ casts 2018-02-09 09:16:55 -08:00
Jan Tattermusch c9ec2c0888
Revert "Stop using std::thread in C++ library since it can trigger exceptions" 2018-01-12 10:16:22 +01:00
Vijay Pai 5dd32268be Switch C++ sync server to use gpr_thd rather than std::thread and provide resource exhaustion mechanism 2018-01-08 10:02:38 -08:00
Vijay Pai 4afcf5b566 Remove unused code from thread_stress_test 2017-11-01 10:44:01 -07:00
Vijay Pai 3d7d5f4ed2 Create inproc transport, add relevant tests, exclude irrelevant tests 2017-07-14 16:23:54 -07:00
Jan Tattermusch 7897ae9308 auto-fix most of licenses 2017-06-08 11:22:41 +02:00
Nicolas "Pixel" Noble 3726e3d37b Moving gtest include down.
In some cases, depending on the direction of the wind, and the phase of the moon, gtest can interfere with protobuf badly with macros cross-pollution between the two projects. Moving the gtest inclusion at the end makes the problem go away.
2017-05-10 18:33:12 +02:00
Vijay Pai 56540ba9f9 clang-format 2016-11-04 10:02:31 -07:00
Vijay Pai b0a6be2b8f Remove some unnecessary new/delete patterns 2016-11-04 07:51:25 -07:00
Vijay Pai 90102c2bfc Eliminate unnecessary uses of new[]/delete[] that can be replaced
with vector

Also start eliminating uses of plain-old delete that are not helpful
2016-11-04 07:51:24 -07:00
Vijay Pai 320ed13d3e Deprecate grpc::thread and sync in favor of std::thread,mutex,etc 2016-11-01 17:16:55 -07:00
Vijay Pai 713c7b87e1 clang-format 2016-11-01 16:33:18 -07:00
Vijay Pai c0b2acb1a0 Use C++11 final and override 2016-11-01 16:31:56 -07:00
Craig Tiller 44b12f9e23 clang-format 2016-09-08 10:06:14 -07:00
Craig Tiller bd37a21c26 Cleanup, debug support 2016-09-07 11:28:56 -07:00
Vijay Pai 6ab4788ae9 clang-format changes 2016-06-17 00:31:23 -07:00
Vijay Pai a63271c77f Deal with to_string, proper usage of nullptr, and lack of map::emplace 2016-06-15 12:56:38 -07:00
Jan Tattermusch 4da87600dc Merge pull request #6041 from vjpai/i_know_virtual_destructors
Add virtual destructor to satisfy a requirement of some compilers
2016-03-31 17:54:43 -07:00
vjpai bd06e441cc Add virtual destructor to satisfy a requirement of some compilers 2016-03-31 09:33:51 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Vijay Pai 98f2f754b8 Used TYPED_TEST to parametrize
Include all 4 sync/async client/server combos
2016-03-29 00:54:11 -07:00
Vijay Pai 40d1a2cb87 clang-format 2016-03-29 00:38:09 -07:00
Vijay Pai bbbbf621e4 Add a concurrent test for sync client, async server case 2016-03-29 00:35:26 -07:00
Craig Tiller 9533d042d4 Fix includes 2016-03-25 17:11:06 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
Craig Tiller 45551e0c99 Fix sanity 2016-02-08 14:22:40 -08:00
Sree Kuchibhotla 001db590ff Modify the test to have large number of threads receiving the RPCs and a
smaller number of threads sending the RPCs. This increases the
likelyhood of race-conditions on receiving threads.
2016-02-08 10:57:41 -08:00
Vijay Pai 0a3a766960 Give tsan a chance 2016-02-04 07:32:29 -08:00
Vijay Pai feef8be5ae clang-format 2016-02-03 16:21:25 -08:00
Vijay Pai 63b28447e8 Remove the command-line flags 2016-02-03 15:40:06 -08:00
Vijay Pai 490e5023d7 Fix a typecast... 2016-02-03 15:37:03 -08:00
Vijay Pai e51d29d93c Remove some std:: so that grpc:: will be used by default when available 2016-02-03 12:00:09 -08:00
Vijay Pai 9f3bbb00d8 Generalize namespace for ParseCommandLineFlags 2016-02-03 11:41:50 -08:00
Vijay Pai d10bbb63f8 Refactor to favor composition over inheritance
Also make num_threads and num_rpcs as command-line flags
2016-02-03 11:26:23 -08:00
vjpai c1e70dbc61 100->1000 2016-01-26 15:24:56 -08:00
vjpai 79bdde2ac3 Make async message match sync 2016-01-26 15:22:21 -08:00
Vijay Pai c7c5639d3e Make TearDown follow typical gtest fixture format 2016-01-22 15:34:14 -08:00
Vijay Pai e3b03712fd 100->1000 2016-01-22 11:20:37 -08:00
Vijay Pai 4dc269ed98 Merge async client thread stress test into main thread stress test so as to
improve code reuse
2016-01-22 11:19:30 -08:00
David Garcia Quintas 2bf574f814 Added back trailing newlines 2016-01-14 15:55:03 -08:00
murgatroid99 ace28d3f98 Fix copyrights again 2016-01-14 10:12:10 -08:00