Commit Graph

292 Commits

Author SHA1 Message Date
Esun Kim e52081f903 More pythons to be formatted 2020-01-03 22:21:23 -08:00
Jan Tattermusch 78888d7861 avoid thread local unitialized problem under GRPC_PTHREAD_TLS 2019-11-25 13:35:26 +01:00
Lidi Zheng c34bef4ca4 Format all Bazel files with buildifier 2019-11-05 14:03:52 -08:00
Vijay Pai 2314f3952f
Merge pull request #20658 from vjpai/remove_warn_3
Remove unused parameter warnings (3 of 20)
2019-10-17 13:56:54 -07:00
Vijay Pai 38d87137f8 Remove unused parameter warning (3 of 20) 2019-10-17 08:50:49 -07:00
Vijay Pai 41d89242ad Remove unused parameter warning (2 of 20) 2019-10-17 08:50:44 -07:00
Esun Kim feb263ba6d Add check_attrs & clean-up build.yaml 2019-08-16 13:41:12 -07:00
Yash Tibrewal 9427b3e4b2
Merge pull request #19376 from yashykt/badstreamtests
Add tests for bad stream IDs
2019-06-20 19:54:48 -07:00
Yash Tibrewal 24c232009c Merge branch 'master' into out_of_bounds_tests 2019-06-17 16:48:42 -07:00
Yash Tibrewal 8a310e5063 Clang tidy 2019-06-17 16:48:30 -07:00
Yash Tibrewal 4fc02c6bf5 add tests for bad stream IDs 2019-06-17 16:30:06 -07:00
Yash Tibrewal c8233e108d
Merge pull request #19360 from yashykt/bad_client_fix
Add gtest dependency to the test instead of library
2019-06-17 13:26:33 -07:00
Yash Tibrewal 9f10ab5377 Add gtest dependency to the test instead of library 2019-06-14 16:24:12 -07:00
Yash Tibrewal e60c43ff3e Add out of bounds frame tests 2019-06-14 16:13:19 -07:00
Vijay Pai f05c475f01 Fix Python3 incompatibility 2019-06-14 14:34:37 -07:00
Yash Tibrewal ea427791d3 Reviewer comments 2019-06-10 16:24:42 -07:00
Yash Tibrewal 597a67a2b5 Covert to GTEST 2019-06-06 18:18:30 -07:00
Yash Tibrewal 7994ea53fc Add detailed unknown frame type tests 2019-06-06 11:49:57 -07:00
Yash Tibrewal 9345b7e276 s/atleast/at\ least 2019-04-25 17:15:30 -07:00
Soheil Hassas Yeganeh 18b19105f2 Implement TCP_INQ for gRPC in Linux
TCP_INQ is a socket option we added to Linux to report pending bytes
on the socket as a control message.

Using TCP_INQ we can accurately decide whether to continue read or not.
Add an urgent parameter, when we do not want to wait for EPOLLIN.

This commit improves the latency of 1 RPC unary (minimal benchmark)
significantly:

  Before:
    l_50: 61.3584984733
    l_90: 94.8328711277
    l_99: 126.211351174
    l_999: 158.722406029

  After:
    l_50: 51.3546011488 (-16%)
    l_90: 72.3420731581 (-23%)
    l_99: 103.280218974 (-18%)
    l_999: 130.905689996 (-17%)
2019-03-06 22:15:53 -05:00
Jan Tattermusch 486b1fe320 Fix bad_client_simple_request test.
The data of 0xffffffff is actually not illegal, the top bit should be
ingored according to the spec.
2019-02-07 10:21:09 +01:00
yang-g 038a71d826 Merge remote-tracking branch 'upstream/master' into gpr_test_util_to_grpc_test_util 2018-12-17 08:52:20 -08:00
ncteisen 7b81ae14a7 clang tidy and clang format 2018-12-07 14:59:04 -08:00
yang-g e00ca0371a Promote gpr_test_util to part of grpc_test_util, add a sample to show it works, build.yaml change first 2018-12-06 13:40:12 -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
ncteisen e35f24da4d reviewer feedback 2018-10-04 15:25:49 -07:00
Yash Tibrewal 8d47cd4992
Revert "Revert "Fathom tcp changes"" 2018-08-27 14:56:01 -07:00
Jan Tattermusch 97ba943f17
Revert "Fathom tcp changes" 2018-08-27 12:43:20 +02:00
Yash Tibrewal f0397933b0 Fathom TCP level changes. TracedBuffer for keeping track of all buffers
to be traced. Adding tests for Fathom and TracedBuffer. A lot more.
Please read PR description.
2018-07-16 16:28:15 -07: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 58a62755fc Remove support for detached threads. All threads must be joined. 2018-02-15 21:30:13 -08:00
Vijay Pai c745690caf Internalize gpr_thd except for id and currentid 2018-02-12 11:44:52 -08:00
Noah Eisen 4d20a66685 Run clang fmt 2018-02-09 09:34:04 -08:00
Noah Eisen be82e64b3d Autofix c casts to c++ casts 2018-02-09 09:16:55 -08:00
adelez 39307d23c3
Revert "Revert "Define the tests as grpc_cc_test to automatically test against all po…"" 2018-02-07 11:13:52 -08:00
Mehrdad Afshari b9335ebe47 Upmerge branch 'v1.9.x' into 'master' 2018-02-05 23:23:42 -08:00
adelez 18a356c9fa
Revert "Define the tests as grpc_cc_test to automatically test against all po…" 2018-02-06 14:34:35 -08:00
Adele Zhou 5b30e46854 Define the tests as grpc_cc_test to automatically test against all polling strategies 2018-02-05 14:22:37 -08:00
Yash Tibrewal 83ad85e2fa Remove unnecessary check and few more comments 2018-01-30 15:25:05 -08:00
Yash Tibrewal 54f6092eff Force the client to shutdown so that the server write can complete 2018-01-30 12:17:14 -08:00
Ken Payson 1dc0833bed Don't segfault on header replay 2018-01-26 10:58:18 -08:00
Yash Tibrewal 153ebda1ba reduce send size for window overflow test 2018-01-24 17:35:54 -08:00
Yash Tibrewal b9a34339a7 Make the thread wait so that write can complete too 2018-01-24 14:33:46 -08:00
Yash Tibrewal ea8027a0b1 Merge branch 'master' into badclient 2018-01-24 10:58:25 -08:00
Yash Tibrewal 7cbbee745e remove unnecessary assert 2018-01-24 10:57:36 -08:00
Yash Tibrewal 0d8b21e100 Add helper function for rst_stream 2018-01-23 19:46:42 -08:00
Yash Tibrewal eea1d9ba70 nullptr check 2018-01-22 12:14:56 -08:00
Yash Tibrewal 1791df0a72 Bad client changes to make large metadata test to work again 2018-01-22 03:18:38 -08:00
Mark D. Roth dbdf495f61 Split lib/support into lib/gpr and lib/gpr++. 2018-01-18 11:21:12 -08:00
Yash Tibrewal 8cf1470a51
Revert "Revert "All instances of exec_ctx being passed around in src/core removed"" 2017-12-06 09:47:54 -08:00