Commit Graph

2358 Commits

Author SHA1 Message Date
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
Craig Tiller e1c2d6a6df Fix clang3.7/tsan compile failure 2016-02-03 11:18:29 -08:00
Vijay Pai ce7929c877 Merge branch 'master' into async_thread_stress_test 2016-02-03 10:13:19 -08:00
Sree Kuchibhotla 4aadcb4ebf Run tools/distrib/clang_format_code.sh 2016-02-03 09:44:27 -08:00
Sree Kuchibhotla 9bc6fa0a40 Merge branch 'master' into server_try_cancel_api 2016-02-03 07:41:31 -08:00
yang-g 9fd55b0d2d remove duplicate functions 2016-02-02 16:23:35 -08:00
yang-g 7b0edbd1a3 remove the old impl caused by 4921 2016-02-02 16:05:21 -08:00
Sree Kuchibhotla a0a8eaab0e Merge branch 'master' into server_try_cancel_api 2016-02-01 14:04:19 -08:00
Sree Kuchibhotla 369a04ace6 Address code review comments 2016-02-01 10:53:13 -08:00
yang-g f8174ea37d use huffman prefix 2016-02-01 00:09:13 -08:00
Sree Kuchibhotla 0f242acb9d Comments and a minor fix 2016-01-29 18:13:33 -08:00
Sree Kuchibhotla 4fb590852f Use the same completion queue for both client and server 2016-01-29 11:16:24 -08:00
Sree Kuchibhotla f25c6ba229 Comments and format 2016-01-28 18:04:03 -08:00
Sree Kuchibhotla 944f4cf14e Sync server end2end and async_end2end tests 2016-01-28 17:37:10 -08:00
David Garcia Quintas b4e51b52bd Merge branch 'master' of github.com:grpc/grpc into sync-async-plus-interfaces 2016-01-27 19:57:58 -08:00
Vijay Pai 1d5faae03b Merge branch 'master' into async_thread_stress_test 2016-01-27 15:20:03 -08:00
Craig Tiller a0fef14784 clang-format code 2016-01-27 15:10:39 -08:00
Craig Tiller b0f275e4af Small testing fixes
- end2end test deadlines may complete before checking IsCancelled
  => don't expect it to be false in these cases
- add exponential backoff to port_posix
- ensure run_tests rebuilds targets with a regex I commonly use
2016-01-27 10:45:50 -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
Vijay Pai dac77d600c Trim some unused code copied from another test. 2016-01-21 18:00:42 -08:00
Vijay Pai abd5aa402f Introduce thread stress test using async client. The server is still sync
for now. This will increase our coverage of concurrent execution cases in C++
since we don't currently have any coverage for multithreaded async execution using
a common completion queue.

In this test, 100 client threads initiate 1000 RPCs each, then join, and then
100 client threads come along to proces those RPC completion events as they come back.
2016-01-21 17:48:29 -08:00
David Garcia Quintas f3ddb7c55a clang-format 2016-01-20 16:02:22 -08:00
yang-g b971173712 Add tests with a second service 2016-01-15 16:53:08 -08:00
yang-g 4fac82b672 remove outdated api 2016-01-15 13:15:32 -08:00
yang-g ad63510102 Add a test with two methods generic 2016-01-15 13:11:37 -08:00
yang-g 9f17314a35 move utilities to a separate file 2016-01-15 12:46:40 -08:00
yang-g c021c9be5b clang-format 2016-01-15 11:28:35 -08:00
yang-g 269b8be406 add generic test 2016-01-15 10:46:26 -08:00
yang-g 8053d2feb6 Merge remote-tracking branch 'upstream/master' into sync_async_mix 2016-01-15 08:53:15 -08:00
yang-g d6f7d99dc6 Add a hybrid end2end test mixing sync and async methods 2016-01-14 16:04:20 -08:00
David Garcia Quintas 2bf574f814 Added back trailing newlines 2016-01-14 15:55:03 -08:00
yang-g be5a2c4f04 working test 2016-01-14 13:11:15 -08:00
yang-g 25f191d49b merge with head 2016-01-14 11:51:11 -08:00
murgatroid99 ace28d3f98 Fix copyrights again 2016-01-14 10:12:10 -08:00
Sree Kuchibhotla b0d0c8e8c2 FormatCode 2016-01-13 22:52:17 -08:00
Sree Kuchibhotla 5a05f51a1c Rename TestService to EchoTestService to prevent name-conflict with
'TestService' in test.proto
2016-01-13 22:43:20 -08:00
yang-g dc548ed65d merge with head 2016-01-13 10:42:19 -08:00
murgatroid99 3466c4b55d Updated copyrights 2016-01-12 10:26:04 -08:00
Craig Tiller 15f383c6cc Exploratory refactoring for mixed sync/async methods on the same C++ service 2016-01-07 12:45:32 -08:00
Craig Tiller 54ed674d40 Merge github.com:grpc/grpc into proto_names 2016-01-06 17:05:34 -08:00
Craig Tiller 00f8702c5e Merge branch 'yawn' into proto_names 2015-12-22 14:23:51 -08:00
Craig Tiller 7536af02cf Eliminate gpr_ int types - and insist on C99 variants instead 2015-12-22 13:49:30 -08:00
Craig Tiller 0fe5ee7be3 BoringSSL integration: non-vsprojects changes 2015-12-22 12:50:36 -08:00
Craig Tiller 1b4e33029e Consolidate C++ proto files under src/proto
- make the directory structure match the package structure
- sanitize the package structure (test --> testing)
- add auto-detection of proto file dependencies
2015-12-17 16:35:00 -08:00
Craig Tiller ca9a637877 Fix double read at end of stream bug 2015-12-15 18:16:28 -08:00
Craig Tiller 620e965c1b clang-format after last weeks test-fest 2015-12-14 12:02:50 -08:00
Yang Gao 5b763f5355 Merge pull request #4362 from vjpai/coverage-serve2
Cover an unsupported case of mixing sync and async service in server
2015-12-09 12:50:58 -08:00
vjpai 017ed62ce4 Cover an unsupported case of mixing sync and async service in same server 2015-12-09 10:42:54 -08:00
vjpai ba2b8ed553 Add a case to cover multiple adds of generic service 2015-12-09 10:24:47 -08:00
Nicolas "Pixel" Noble f9c58f3bf7 Merge branch 'release-0_12'
Conflicts:
	src/core/security/credentials.c
	test/core/security/credentials_test.c
2015-12-01 22:40:44 +01:00
Julien Boeuf 114f39475f Cpp example of how the plugins can be done. 2015-11-19 22:24:05 -08:00
David G. Quintas 75b53d6a5d Merge pull request #3993 from ctiller/new_op
Core transport & call cleanup
2015-11-18 08:52:10 -08:00
Julien Boeuf 232d625a84 Merge branch 'master' of github.com:grpc/grpc into core_creds_api_change 2015-11-17 20:55:13 -08:00
Julien Boeuf 675b5ce861 Merge branch 'master' of github.com:grpc/grpc into core_creds_api_change 2015-11-17 15:05:45 -08:00
yang-g a89bf50cf1 Handle cancel before start case 2015-11-17 14:19:17 -08:00
Craig Tiller a147aee75a Merge github.com:grpc/grpc into new_op 2015-11-04 07:29:22 -08:00
vjpai 6bf1de9ab2 Mark a method with GRPC_OVERRIDE to avoid compiler warning 2015-11-02 14:48:57 -08:00
Craig Tiller 93b944785c stream_op cleanup: test fixes and updates 2015-11-02 14:18:30 -08:00
Julien Boeuf 18a12c4e9b Fixing zookeeper tests as well. 2015-10-12 15:05:59 -07:00
Julien Boeuf e5adc0eb67 Fixing Cpp tests. 2015-10-12 14:09:13 -07:00
Craig Tiller 91054e6855 Merge pull request #3627 from yang-g/flake2
Deflake end2end_test
2015-10-05 11:21:49 -07:00
yang-g c04610357c The Writes may return false after the server cancels the stream 2015-10-02 16:22:43 -07:00
Vijay Pai 7a94236d69 Merge pull request #3556 from ctiller/clangf
Fix clang-format script
2015-10-01 23:23:50 -07:00
yang-g 0d55750cb2 Maybe it is already ready when we call getstatus 2015-10-01 11:34:00 -07:00
Craig Tiller b7a597771f Merge github.com:grpc/grpc into clangf 2015-10-01 08:01:58 -07:00
Vijay Pai f37cac7dd2 Merge pull request #3565 from yang-g/end2end_test
Add more test cases to end2end test.
2015-09-30 14:36:41 -07:00
Vijay Pai 8423203cbb For compatibility with gcc-4.4, eliminate use of sleep_for and
std::atomic
2015-09-29 23:16:08 +00:00
yang-g bf22e0e8a0 remove anonymous namespace in anonymous namespace 2015-09-29 12:50:07 -07:00
yang-g 88d5d52d73 add tls and proxy as dimensions of end2end test 2015-09-29 12:47:51 -07:00
Craig Tiller 71a0f9d3b0 Fix clang-format script 2015-09-28 17:22:01 -07:00
Vijay Pai fa6e70ff85 Remove one pessimizing std::move 2015-09-28 15:56:07 -07:00
Yang Gao b09a875917 Merge pull request #3476 from vjpai/block_annotate
Annotate blocking points
2015-09-25 13:54:51 -07:00
vjpai 3ca49d2a1a Add a todo regarding a C++ block annotation 2015-09-24 21:55:16 -07:00
Craig Tiller b0bd53a173 Merge github.com:grpc/grpc into shindig
Conflicts:
	src/core/surface/secure_channel_create.c
2015-09-22 16:24:12 -07:00
Julien Boeuf 8b0b6f413d It is a bad idea to have a map with string_refs as output params.
This is very much unsafe as the string_ref could point on a stack
variable of the callee.
2015-09-22 13:31:16 -07:00
Craig Tiller 10ee2747a9 Merge github.com:grpc/grpc into we-are-one 2015-09-22 09:25:57 -07:00
Craig Tiller f9dd54c2eb Merge pull request #3378 from yang-g/connection_failure_detection
remove connectivity watcher from interested party early
2015-09-22 08:28:22 -07:00
yang-g 5e8abedd61 use seconds 2015-09-18 01:31:57 -07:00
yang-g d886f33939 add a test 2015-09-18 01:24:14 -07:00
Julien Boeuf fd2f7331fa Merge branch 'master' of github.com:grpc/grpc into core_creds_plugin 2015-09-15 15:20:26 -07:00
Julien Boeuf 1928d496a2 Adding C++ tests and fixing a few things. 2015-09-15 15:20:11 -07:00
Craig Tiller 2311d4918f Merge pull request #3186 from grpc/release-0_11
Daily Release 0.11 upport to master
2015-09-03 17:16:03 -07:00
Nicolas "Pixel" Noble 59588c6162 Removing pessimizing moves.
Pass #2.
2015-09-03 02:29:30 +02:00
Craig Tiller 93ddc61c10 Fix compilation 2015-09-02 07:57:48 -07:00
Nicolas "Pixel" Noble 7fa51677bc Removing pessimizing moves.
These have been reported by a (very recent) build of clang and its new -Wpessimizing-move option.
2015-09-02 02:29:16 +02:00
Craig Tiller 1fdb05b498 Merge github.com:grpc/grpc into daisy-dukes
Conflicts:
	build.json
	vsprojects/Grpc.mak
2015-09-01 17:13:30 -07:00
Craig Tiller a4517a2020 Remove C++11isms 2015-08-31 07:29:12 -07:00
Craig Tiller 61575651ab Merge github.com:grpc/grpc into daisy-dukes 2015-08-31 07:11:54 -07:00
Julien Boeuf 0d47192afa Fixing headers and paths after merge with upstream. 2015-08-30 22:18:50 -07:00
Julien Boeuf 821de3439f Addressing comments. 2015-08-28 16:31:20 -07:00
Julien Boeuf 5be92a316d Shuffling headers around. 2015-08-28 16:28:18 -07:00
Julien Boeuf 97cd4ae606 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-28 15:51:02 -07:00
Julien Boeuf 6c7185d350 Merge branch 'master' of github.com:grpc/grpc into credentials_naming_and_cleanup 2015-08-28 14:33:17 -07:00
Julien Boeuf a883ccfb46 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-28 14:13:04 -07:00
Julien Boeuf 0c711ad88b Adding C++ metadata processor.
- Had to chnage the core API to add a destroy function pointer in
  grpc_auth_metadata_processor.
- Tested end to end.
- Fixed some issues in the server_auth_filter (we were not checking the
  length which put us at risk of an overflow).
2015-08-28 14:10:58 -07:00
Julien Boeuf fe4bacb641 Merge branch 'credentials_naming_and_cleanup' of github.com:jboeuf/grpc into credentials_naming_and_cleanup 2015-08-27 15:49:27 -07:00
yang-g 730055d962 implementation fix 2015-08-27 12:29:45 -07:00
Craig Tiller 958ee76018 IWYU 2015-08-27 08:09:50 -07:00
Craig Tiller 70a816807f Friends dont let friends use volatile for synchronization 2015-08-27 07:46:20 -07:00
Rakesh Iyer 4abe76eff5 Repro case for flow control bug.
This is a repro case for a bug where if the client is sending
full throttle and the receiver is not able to keep up, the
client reaches a case where it doesn't make forward progress
anymore.

Signed-off-by: Craig Tiller <craig.tiller@gmail.com>
2015-08-26 16:38:36 -07:00
yang-g 5e700f3d1f Merge remote-tracking branch 'upstream/master' into string_ref_auth 2015-08-26 10:16:31 -07:00
Craig Tiller afbbaf9c3e Merge pull request #3065 from yang-g/string_ref
Use string_ref for incoming metadata
2015-08-26 08:22:42 -07:00
Julien Boeuf 510a920c75 Credentials cleanup:
- Removing service_accounts credentials. These credentials just have
  drawbacks compared to service_account_jwt_access credentials, notably
  in terms for security.
- Renaming Google specific credentials with a Google prefix for C and
  C++. This should be done as well for wrapped languages.
2015-08-25 21:51:07 -07:00
yang-g d090fe1379 auth context api change for string_ref 2015-08-25 16:53:07 -07:00
yang-g e21908fcee impl 2015-08-25 13:47:51 -07:00
Craig Tiller dc31ef38d2 Loosen test requirements to better fit spec 2015-08-25 07:11:35 -07:00
yang-g 3e4bd9598b merge with head 2015-08-24 15:54:07 -07:00
Vijay Pai 0660eaca00 Merge branch 'master' into fray 2015-08-24 14:33:39 -07:00
Vijay Pai e8a7e30a75 Eliminate public thread-pool interface 2015-08-24 10:52:33 -07:00
Craig Tiller b7e22b9686 Merge github.com:grpc/grpc into y12kdm3 2015-08-21 16:06:30 -07:00
yang-g 9e2f90cd06 headers reorg 2015-08-21 15:35:03 -07:00
yang-g d392fa04c5 fix shutdown_test 2015-08-20 13:55:29 -07:00
yang-g 961eeb0b44 Merge remote-tracking branch 'upstream/master' into docs 2015-08-20 12:18:28 -07:00
yang-g 8c2be9f228 Remove ChannelInterface and replace it with Channel 2015-08-19 16:28:09 -07:00
Craig Tiller 128f4a9cfe Merge github.com:grpc/grpc into y12kdm3 2015-08-18 12:51:05 -07:00
Craig Tiller 5c6e6276be Merge github.com:grpc/grpc into shutdown-c++ 2015-08-18 12:45:09 -07:00
Craig Tiller e50e5cbde2 Add a timeout to shutdown to forcefully end calls 2015-08-18 12:44:57 -07:00
Craig Tiller d6c98df792 clang-format all source 2015-08-18 09:33:44 -07:00
yang-g c31cd86a74 Let lame_client accept error status 2015-08-17 15:37:27 -07:00
Craig Tiller 8f7bff7d48 Merge github.com:grpc/grpc into y12kdm3 2015-08-17 13:23:14 -07:00
David G. Quintas bd0d1bd5d9 Merge pull request #2549 from hongweiwang/zookeeper
Zookeeper name resolver
2015-08-14 10:06:03 -07:00
Hongwei Wang c3f48c80d4 Minor fix on comments 2015-08-13 17:22:58 -07:00
Hongwei Wang 85ad685e57 Address comments and update grpc plugins 2015-08-13 16:13:10 -07:00
Vijay Pai 8c0389d84e Merge pull request #2921 from yang-g/unknown_service
Use a sync service to handle requests to unknown services
2015-08-13 15:30:01 -07:00
yang-g 9b7757dd35 Use a sync service to handle requests to unknown services 2015-08-13 11:15:53 -07:00
Hongwei Wang ff6097ac49 Fix zookeeper resolver plugin bugs 2015-08-12 17:48:56 -07:00
Craig Tiller d067c263b2 Merge github.com:grpc/grpc into y12kdm3
Conflicts:
	src/core/security/google_default_credentials.c
	test/core/security/verify_jwt.c
2015-08-12 12:00:36 -07:00
Hongwei Wang 31efd2adad Debugging 2015-08-12 11:42:58 -07:00
Hongwei Wang eeb61ba355 Minor fix for debugging 2015-08-12 11:27:28 -07:00
David G. Quintas 086a982744 Removed "<:" bigram confusing gcc 4.4
Resulted in error:

```test/cpp/end2end/end2end_test.cc:120: error: ‘<::’ cannot begin a template-argument list
test/cpp/end2end/end2end_test.cc:120: note: ‘<:’ is an alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’
test/cpp/end2end/end2end_test.cc:120: note: (if you use ‘-fpermissive’ G++ will accept your code)
make: *** [objs/opt/test/cpp/end2end/end2end_test.o] Error 1```
2015-08-11 18:56:10 -07:00
Hongwei Wang d7c5aa856b Formatting zookeeper_test 2015-08-10 20:30:39 -07:00
Hongwei Wang b0453fba84 Update zookeeper test to have two servers 2015-08-10 17:04:36 -07:00
Hongwei Wang 68d205d85b Minor fix on zookeeper test 2015-08-07 19:19:02 -07:00
Hongwei Wang 6bbcd0493e test 2015-08-07 19:09:36 -07:00
Hongwei Wang ad5c897a94 Merge branch 'master' of https://github.com/grpc/grpc into zookeeper 2015-08-07 17:17:22 -07:00
Hongwei Wang 497d26a83d Update zookeeper in jenkins docker file 2015-08-07 16:39:24 -07:00
Hongwei Wang 2ad07d7523 Formatting 2015-08-07 11:30:36 -07:00
Hongwei Wang 6d445965cc Zookeeper test server address as environment variable 2015-08-07 10:53:22 -07:00
yang-g cec757f22a Fix build 2015-08-06 22:53:58 -07:00
yang-g 87e133e13a merge with head 2015-08-06 22:51:27 -07:00
yang-g c8abca8f53 Resolve comments 2015-08-06 22:50:16 -07:00
Craig Tiller a3a7e5c0b2 Merge github.com:grpc/grpc into y12kdm3 2015-08-06 13:19:33 -07:00
Hongwei Wang a83d1b324a Merge branch 'master' of https://github.com/grpc/grpc into zookeeper 2015-08-06 12:52:18 -07:00
Craig Tiller 4c06b820e0 Add a test of non-blocking API behavior
... also fix things that were broken :)
2015-08-06 08:41:31 -07:00
Craig Tiller 69f90e6382 Working towards a non-blocking API test 2015-08-06 08:32:35 -07:00
Hongwei Wang 2b1b95a792 Change zookeeper address to grpc-jenkins-master in zookeeper_test 2015-08-05 17:32:43 -07:00
Hongwei Wang 443a7501bb Zookeeper test add authority in client context 2015-08-05 16:27:54 -07:00
Craig Tiller 2c3be1df4f Add tests for C++ propagation 2015-08-05 15:59:27 -07:00
yang-g 8708dd76c1 Add WaitForState 2015-08-05 15:57:14 -07:00
yang-g 36f5965247 clean up and add a test 2015-08-05 15:15:18 -07:00
Hongwei Wang bc7405c320 Merge branch 'master' of https://github.com/grpc/grpc into zookeeper 2015-08-05 12:46:17 -07:00
Yang Gao d2e9cb3b92 Merge pull request #2765 from ctiller/the-test-be-sleepy
Fix edge cases in CHTTP2 resulting in lose of send close from clients
2015-08-05 11:47:30 -07:00
Hongwei Wang 4346e53be6 Merge branch 'master' of https://github.com/grpc/grpc into zookeeper 2015-08-05 11:21:15 -07:00
Craig Tiller 220adcc745 Merge branch 'primary-goat-whisperer' into the-test-be-sleepy 2015-08-05 07:16:52 -07:00
yang-g 5239ee2bd0 Merge remote-tracking branch 'upstream/master' into cancel 2015-08-04 16:15:57 -07:00
yang-g b335256444 Add AsyncNotifyWhenDone 2015-08-04 14:42:06 -07:00
Craig Tiller 902d9c4722 Merge pull request #2749 from yang-g/default_host_to_null
Pass NULL as host by default. Use context.authority() or channel.SslN…
2015-08-04 14:28:49 -07:00
Craig Tiller 82389ecf1a Merge branch 'primary-goat-whisperer' into the-test-be-sleepy 2015-08-04 09:01:36 -07:00
Hongwei Wang 72538b9103 Merge branch 'master' of https://github.com/grpc/grpc into zookeeper 2015-08-03 12:29:18 -07:00
Hongwei Wang eace1904de Zookeeper resolver end-to-end test: zookeeper state change between two RPCs 2015-08-03 12:22:32 -07:00
Craig Tiller fb21ae6040 Re-enable all the tests 2015-08-03 10:16:11 -07:00
yang-g 940d555a63 fix generic_end2end_test 2015-07-31 22:11:41 -07:00
Craig Tiller 7c1be05463 Line up starting times 2015-07-31 15:38:37 -07:00
Hongwei Wang 8e04d4107e Add zookeeper end-to-end test 2015-07-31 15:12:51 -07:00
yang-g 8ab383686b add a test where a read and a writesdone happen at the same time 2015-07-31 14:05:33 -07:00
yang-g dcf6c90b33 merge with head 2015-07-30 11:35:18 -07:00
yang-g d7ead699f8 Add a test 2015-07-30 10:57:45 -07:00
Craig Tiller dfc42da760 Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other
Conflicts:
	src/core/iomgr/tcp_server_windows.c
2015-07-26 12:37:53 -07:00
Yang Gao 2a31304d7f Merge pull request #2647 from vjpai/deepend
Dynamic-sized thread pool
2015-07-24 23:08:27 -07:00
Yang Gao 1fedc800dc Merge pull request #2655 from vjpai/expecteq
Switch an int to size_t or else it fails on Mac
2015-07-24 21:59:03 -07:00
jboeuf 5749a3f467 Merge pull request #2605 from yang-g/fake_transport_security_to_private
Fake transport security to private
2015-07-24 21:30:35 -07:00
vjpai 51d22752d6 Switch an int to size_t or else it fails on Mac 2015-07-24 14:11:04 -07:00
Vijay Pai f0c66c6365 Merge branch 'master' into deepend 2015-07-24 10:51:27 -07:00
Vijay Pai 1f3e6c1ebe Start switching everything to dynamic pool 2015-07-23 16:18:21 -07:00
Craig Tiller b256faa353 Merge github.com:grpc/grpc into sometimes-its-good-just-to-check-in-with-each-other 2015-07-23 11:28:16 -07:00
yang-g 6f30decf79 Flow control fix 2015-07-22 23:14:43 -07:00
Yang Gao 1451f2e919 Merge pull request #2571 from vjpai/cent6-issues
Remove one range-based for and do appropriate static casts on nullptr
2015-07-22 21:30:00 -07:00
yang-g 70a1337045 merge head and resolve conflict 2015-07-22 00:08:06 -07:00
yang-g 8b25f2aaeb move fake_transport_security_credentials to private API 2015-07-21 23:54:36 -07:00
Vijay Pai c4af224970 Remove one range-based for and do appropriate static casts on nullptr 2015-07-21 18:44:20 +00:00
Craig Tiller 60fb201277 Merge github.com:grpc/grpc into now-i-get-to-show-it-to-EVERYBODY
Conflicts:
	src/cpp/client/channel_arguments.cc
2015-07-20 21:37:13 -07:00
Craig Tiller bf6abeef3d Remove experimental prefix 2015-07-19 22:31:04 -07:00
Craig Tiller b4fdd32100 Merge github.com:grpc/grpc into now-i-get-to-show-it-to-EVERYBODY
Conflicts:
	src/cpp/client/channel_arguments.cc
2015-07-19 22:26:26 -07:00
Craig Tiller b4e70366c6 Merge branch 'decompression' of https://github.com/dgquintas/grpc into dgquintas-decompression
Conflicts:
	Makefile
	vsprojects/Grpc.mak
2015-07-19 15:35:17 -07:00
Craig Tiller 0dc5e6cf16 User agent string support 2015-07-18 20:39:34 -07:00
Craig Tiller 8bf2dcab4e Make tests a little more robust 2015-07-18 20:39:34 -07:00
David Garcia Quintas cadbf22467 Removed compression levels from clients and _experimental_'d signature of methods manipulating compression algorithms 2015-07-17 15:33:13 -07:00
Craig Tiller c9fef6f521 Merge github.com:grpc/grpc into no-worries-i-can-wait 2015-07-17 14:41:12 -07:00
David Garcia Quintas 7cceb09b79 Merge branch 'master' of github.com:grpc/grpc into decompression 2015-07-16 17:01:18 -07:00
Craig Tiller 9a3f858f93 Merge pull request #2460 from vjpai/exposed_pool
Make thread_pool.h a public header
2015-07-16 16:26:19 -07:00
vjpai a2e1bb1577 Change name of thread_pool files to fixed_size_thread_pool when
appropriate
2015-07-15 16:49:49 -07:00
David Garcia Quintas e0d581b6ad Merge branch 'master' of github.com:grpc/grpc into decompression
# Conflicts:
#	Makefile
#	include/grpc++/client_context.h
#	include/grpc++/server_context.h
#	src/cpp/client/client_context.cc
#	src/cpp/server/server_context.cc
#	vsprojects/Grpc.mak
2015-07-15 14:07:18 -07:00
Craig Tiller e845d980e5 Merge pull request #2406 from dgquintas/writeoptions
Added WriteOptions for per-message flags and modified CallOps to use it.
2015-07-15 13:40:31 -07:00
Vijay Pai 69f2410086 Make thread_pool.h a public header
Rename ThreadPool -> FixedSizeThreadPool to allow for later introduction
of DynamicSizeThreadPool
2015-07-15 12:33:37 -07:00
Vijay Pai 181ef45f5e Addressing outstanding typos and comments
Clang-format of changed files
2015-07-14 13:52:48 -07:00
vjpai df551611d4 Remove reference to nullptr to avoid compiler seeing ambiguity in gcc-4.4
build. The issue is that gcc below 4.6 require us to explicitly define nullptr,
and our explicit definition allows a potential confusion between
nullptr->unique_ptr<string> and
nullptr->char *->grpc::string->unique_ptr<string>
2015-07-14 13:38:44 -07:00
David Garcia Quintas 6a3cf974f7 Added WriteOptions for per-message flags and modified CallOps to use it. 2015-07-13 13:38:18 -07:00
Craig Tiller 677c50c92a Update C++ impl 2015-07-13 10:49:06 -07:00
Craig Tiller 354398f9f5 Updating wrapped languages to new time functions 2015-07-13 09:16:03 -07:00
Vijay Pai d1c9254029 Merge pull request #2289 from ctiller/footprints-on-the-sands-of-time
Introduce multiple clocks to GPR
2015-07-10 16:43:58 -07:00
Craig Tiller f0fb537da9 Merge branch 'footprints-on-the-sands-of-time' into no-worries-i-can-wait 2015-07-10 16:04:08 -07:00
Craig Tiller 080d6c50bb Merge github.com:grpc/grpc into footprints-on-the-sands-of-time 2015-07-10 10:23:10 -07:00
Craig Tiller d0955f36dc Compile fix for Mac 2015-07-10 07:52:37 -07:00
David Garcia Quintas 14ce90ff82 Merge branch 'master' of github.com:grpc/grpc into decompression 2015-07-09 16:18:14 -07:00
yang-g 3315a845ef Merge remote-tracking branch 'upstream/master' into security_context2 2015-07-09 12:32:48 -07:00
Craig Tiller 5cc175f08e Merge github.com:grpc/grpc into footprints-on-the-sands-of-time 2015-07-09 08:48:35 -07:00
yang-g 85c04f938f resolve comments 2015-07-07 17:47:31 -07:00
Craig Tiller 822d2c7beb Support registering services against specific hosts 2015-07-07 16:08:00 -07:00
yang-g c4eef2eae8 add a test case in end2end_test 2015-07-06 23:26:58 -07:00
Craig Tiller 20b5fe9282 Fixup C++ 2015-07-06 10:43:50 -07:00
David Garcia Quintas 8a187099ec Merge branch 'master' of github.com:grpc/grpc into decompression
# Conflicts:
#	Makefile
#	gRPC.podspec
#	src/core/surface/call.c
#	src/core/transport/chttp2/frame_data.c
#	tools/doxygen/Doxyfile.core.internal
#	vsprojects/Grpc.mak
2015-07-01 14:52:44 -07:00
David Garcia Quintas d7d9ce27c5 WIP in *_end2end_test.cc. Tests pass. Fixed leaks and introduced concept of compression request thru MD 2015-06-30 23:29:03 -07:00
yang-g 0b6ad7d4bc Bug fix. Do not push to incoming_queue after it is flushed. 2015-06-25 14:39:01 -07:00
Yang Gao 253aaa6b10 Merge pull request #1969 from ctiller/one-shouldnt-depend-on-protobufs
Remove Protobuf dependency for C++
2015-06-23 10:05:20 -07:00
Craig Tiller 8cca4694ee Fix flaky test
Assertation could be false if the server responds quickly enough (it's
unlikely to). Removing the assert does not change the nature of the
test.
2015-06-22 13:50:59 -07:00
Craig Tiller bf8ac3f406 Merge branch 'you-complete-me' into we-dont-need-no-backup 2015-06-17 09:15:48 -07:00
Craig Tiller 2622ddbcfd Merge branch 'we-dont-need-no-backup' into one-shouldnt-depend-on-protobufs
Conflicts:
	include/grpc++/async_unary_call.h
	include/grpc++/config.h
	include/grpc++/config_protobuf.h
	include/grpc++/impl/service_type.h
	include/grpc++/stream.h
	src/cpp/common/call.cc
2015-06-16 17:30:26 -07:00
Craig Tiller ddd389a149 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-16 17:14:43 -07:00
Yang Gao c1a2c314fb Update the Status API 2015-06-16 10:59:46 -07:00
Craig Tiller 789471cfc6 Client side compiles/links 2015-06-04 16:19:22 -07:00
Craig Tiller 14556ecf8c Merge branch 'count-the-things' into we-dont-need-no-backup
Conflicts:
	Makefile
	src/core/iomgr/pollset_posix.c
	src/core/surface/call.c
	src/core/surface/channel.c
	src/core/surface/server.c
	src/python/src/grpc/_adapter/_low_test.py
	tools/doxygen/Doxyfile.core.internal
2015-06-01 20:31:27 -07:00
Yang Gao 69fe0759be Various minor fixes 2015-06-01 14:32:38 -07:00
Craig Tiller f54f2d0586 Make test more robust 2015-05-29 12:31:05 -07:00
Craig Tiller 5d8310e104 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-05-27 16:28:34 -07:00
Yang Gao a9b5de8131 Add a check against potential failure to bring up client binary 2015-05-26 23:35:21 -07:00
Craig Tiller 8b5276c02e Merge github.com:grpc/grpc into we-dont-need-no-backup
Conflicts:
	src/core/surface/call.c
	test/core/end2end/dualstack_socket_test.c
	test/core/end2end/tests/early_server_shutdown_finishes_inflight_calls.c
	test/core/end2end/tests/early_server_shutdown_finishes_tags.c
	test/core/end2end/tests/graceful_server_shutdown.c
	test/core/end2end/tests/invoke_large_request.c
	test/core/end2end/tests/max_concurrent_streams.c
	test/core/end2end/tests/max_message_length.c
	test/core/end2end/tests/request_response_with_binary_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_payload.c
	test/core/end2end/tests/request_response_with_payload_and_call_creds.c
	test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
	test/core/end2end/tests/request_with_large_metadata.c
	test/core/end2end/tests/request_with_payload.c
	test/core/httpcli/httpcli_test.c
	tools/run_tests/run_tests.py
2015-05-24 15:58:14 -07:00
Yang Gao fdc9af8dca Merge pull request #1625 from ctiller/mmm-mmm-mmm-mmm
Add a test of crashing servers and clients
2015-05-21 23:40:51 -07:00
David Garcia Quintas feb67f67dc Replaced std::this_thread::sleep_for for gpr_sleep_until.
std::this_thread::sleep_for isn't available in gcc <= 4.6 (4.7?) nor
VS2010.
2015-05-20 23:13:17 -07:00
Craig Tiller 037d8700a7 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-05-19 22:20:57 -07:00
Craig Tiller fd7166d264 Add response streams to server crash test, fix them 2015-05-19 10:23:03 -07:00
Craig Tiller 7a317e5c77 Add crashing client test 2015-05-19 09:38:29 -07:00
Craig Tiller 4f8b679a49 Merge github.com:grpc/grpc into mmm-mmm-mmm-mmm
Conflicts:
	Makefile
	build.json
2015-05-19 09:13:35 -07:00
Yang Gao b57f72dbee resolve comments 2015-05-17 21:54:54 -07:00
Yang Gao 26a4912558 Add fake credentials to the test and verify it actually works 2015-05-15 17:02:56 -07:00
Craig Tiller 74e5edab67 Compile fix 2015-05-15 15:55:01 -07:00
Craig Tiller a969d7c04c Compile fix 2015-05-15 15:47:51 -07:00
Craig Tiller 3cdd9bbdbc clang-format 2015-05-15 14:43:47 -07:00
Craig Tiller 069daa383e Sleep a little after server death to allow TCP time to catch up 2015-05-15 14:40:53 -07:00
Craig Tiller fbac5f17b7 Crash handling test 2015-05-15 14:20:44 -07:00
Yang Gao 280ca17d79 resolve comments 2015-05-15 10:25:10 -07:00
Yang Gao a89389283f support per call credentials in c++ 2015-05-14 11:51:07 -07:00
Craig Tiller 06cf3cc607 Fix async end2end to poll all fds from the main thread 2015-05-13 13:11:01 -07:00
Yang Gao a468c36601 Merge pull request #1493 from ctiller/churn-churn-churn-the-api-gently-down-the-stream
Completion queue binding for new requests API change
2015-05-12 12:37:24 -07:00
Yang Gao 903810191e Merge pull request #1494 from ctiller/the-churnening
Lose redundant tag on unary calls
2015-05-11 11:27:02 -07:00
Yang Gao 9b75c66860 Merge pull request #1489 from ctiller/all-the-small-things
Split thread stress from end2end to improve parallelism
2015-05-11 11:17:18 -07:00
Craig Tiller 0b488f7649 Merge github.com:grpc/grpc into churn-churn-churn-the-api-gently-down-the-stream
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
2015-05-08 16:38:32 -07:00
Craig Tiller 5f871ac225 Merge github.com:grpc/grpc into the-churnening 2015-05-08 13:05:51 -07:00
Craig Tiller e9da2eefcf Merge github.com:grpc/grpc into all-the-small-things 2015-05-08 12:57:26 -07:00
Craig Tiller f51199f2b9 Increase test timeout 2015-05-08 09:32:53 -07:00
Craig Tiller 2be6095c10 Merge github.com:grpc/grpc into churn-churn-churn-the-api-gently-down-the-stream 2015-05-08 08:37:41 -07:00
Craig Tiller fb775b80cb Fix test 2015-05-06 13:09:41 -07:00
Craig Tiller 3676b38183 Lose redundant tag on unary calls 2015-05-06 13:01:05 -07:00
Craig Tiller f9e6adf998 Completion queue binding for new requests API change
Move completion queue binding for new requests to the new request
request time, not server instantiation time.
2015-05-06 11:45:59 -07:00
Craig Tiller 0c23320c8a Split thread stress from end2end to improve parallelism 2015-05-06 07:42:43 -07:00
Yang Gao 691ff71da5 Merge remote-tracking branch 'upstream/master' into mock 2015-05-05 13:31:40 -07:00
Yang Gao 196ade3e4d add a test using the mock interfaces 2015-05-05 13:31:12 -07:00
Yang Gao c71a9d2b56 clang-format 2015-05-04 00:22:12 -07:00
Yang Gao ea13af73e0 merge with head 2015-05-01 11:34:45 -07:00
Yang Gao 3921c56bee Expose max message size at the server side 2015-04-30 16:07:06 -07:00
Craig Tiller 81e57d9acf Add a thread stress end2end test 2015-04-29 16:34:13 -07:00
Craig Tiller 7305dc69e6 Merge pull request #1227 from nicolasnoble/the-purge-2
Refactoring std::chrono out.
2015-04-24 17:57:49 -07:00
Yang Gao fa74ec4617 Merge pull request #1359 from a11r/cc2
Test client stream cancellation and fix bug exposed by the test.
2015-04-24 15:16:51 -07:00
Nicolas "Pixel" Noble fd2bf675f7 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	include/grpc++/completion_queue.h
2015-04-24 23:24:44 +02:00
Yang Gao c4b6ffb1b6 Add a GrpcLibrary class to wrap grpc_init and grpc_shutdown and convert all the tests to init/shutdown free. 2015-04-24 13:09:40 -07:00
Nicolas "Pixel" Noble 23be280366 Merge branch 'master' of github.com:grpc/grpc into the-purge-2
Conflicts:
	src/cpp/client/channel.cc
	vsprojects/vs2010/grpc++.vcxproj
	vsprojects/vs2013/grpc++.vcxproj.filters
2015-04-24 00:38:19 +02:00
Abhishek Kumar d774c5cadb Test client stream cancellation and fix bug exposed by the test. 2015-04-23 14:59:49 -07:00
Craig Tiller bab1d2cf5f Merge pull request #1307 from a11r/streamcancel
Added e2e tests for server and bidi stream cancellation.
2015-04-23 14:15:41 -07:00
Abhishek Kumar a1d3a72930 fixed indentation 2015-04-23 10:24:04 -07:00
Yang Gao 3fbf7d76e2 Merge pull request #1312 from ctiller/batch-metadata
Batch metadata
2015-04-22 14:35:46 -07:00
Yang Gao 3b3097fb7a Remove an extra unref 2015-04-21 11:47:45 -07:00
Craig Tiller 12088b26d9 Tweak tests 2015-04-20 09:51:27 -07:00
Abhishek Kumar 18298a7440 Fixed flakes due to OK racing with cancel 2015-04-17 15:00:25 -07:00
Abhishek Kumar e41d0402ba Added end2end test for server streaming rpc cancellation. 2015-04-17 14:12:33 -07:00
Abhishek Kumar 82a83313db Added test case demonstrating cancel on bidi stream 2015-04-17 13:30:51 -07:00
Nicolas "Pixel" Noble b7c2035e83 Merge branch 'master' of https://github.com/grpc/grpc into the-purge-2
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
	test/cpp/interop/client.cc
2015-04-11 01:53:09 +02:00
Nicolas "Pixel" Noble 0caebbfcfe Splitting gRPC service class codegen into its own set of files. 2015-04-09 23:08:51 +02:00
Nicolas "Pixel" Noble a05b8b7b25 Removing a few more references to #include <chrono> 2015-04-08 09:07:20 +02:00
Nicolas Noble 89219162dd Refactoring std::chrono out. 2015-04-08 05:42:08 +02:00
Yang Gao 0c4b0ddcc5 Add tests with delayed cancellation from client and server 2015-03-30 13:08:34 -07:00
Yang Gao 48bbd000eb merge upstream and resolve conflict 2015-03-26 23:12:14 -07:00
Vijay Pai 92a928fa68 Make string construction explicit as implicit conversion doesn't work in 4.4 2015-03-26 16:30:22 -04:00
Nicolas Noble 96e32aa0a5 Merge pull request #1133 from yang-g/cleanup
clean up
2015-03-25 12:38:40 -07:00
Yang Gao 16c78c922c Clean up unneeded includes and remove shutdown protobuf library 2015-03-25 10:36:16 -07:00
Vijay Pai 82dd80abc6 Elminate range-based fors and work around some other limitations in older compilers 2015-03-24 10:36:08 -07:00
Yang Gao 993d540e37 covert test to use generic stub 2015-03-19 13:35:49 -07:00
Jan Tattermusch 5e36d0d474 Merge pull request #1093 from nicolasnoble/windows
Various Windows fixes.
2015-03-19 10:29:47 -07:00
Nicolas Noble cfd6073a66 Various Windows fixes.
-) using dupenv_s instead of getenv_s and calling strdup ourselves.
-) few impossible-to-obtain if checks.
-) various signed/unsigned casting.
-) using time_t instead of time32_t
-) checking output of FormatMessage for failures.
-) don't redefine _WIN32_WINNT without undefining it first.
-) fixed msvc's interlocked casting.
-) renamed AddPort to AddListeningPort.
-) added protobuf's third_party includes to search path.
-) added a missing definition for inet_ntop in mingw32.
-) removed useless declarations.
2015-03-19 04:21:22 +01:00
Yang Gao 757afaeb30 clang-format new changes 2015-03-17 15:49:26 -07:00
Yang Gao d672d8fbe2 resolve merge confict 2015-03-17 15:47:47 -07:00
Yang Gao 700bdeb6f5 Merge pull request #1023 from vjpai/async
Non-blocking Next method for C++ async completion queue
2015-03-17 15:45:33 -07:00
Yang Gao 6baa9b67ad clang-format c++ code 2015-03-17 10:49:39 -07:00
vjpai 7aadf46fdb Change to std::chrono and add a test. 2015-03-17 00:39:18 -07:00
Yang Gao 1ad253d137 expose the server's cq through the generic service object 2015-03-16 13:11:29 -07:00
Yang Gao 45c09db87c sort the tags, this is not necessary, just make it look better 2015-03-13 15:49:35 -07:00
Yang Gao 9fbbc7bb13 add one bidi test 2015-03-13 15:33:08 -07:00
Yang Gao 4999649653 Rename to AsyncGeneric* 2015-03-12 16:40:19 -07:00
Yang Gao 005eb88c45 Rename anonymous to generic globally 2015-03-11 22:17:13 -07:00
Yang Gao 0cb6c25e71 A first test with typed async client and untyped service for a simple rpc 2015-03-11 00:30:57 -07:00
Craig Tiller 61691f92c3 Merge github.com:grpc/grpc into credit 2015-03-02 08:51:52 -08:00
vjpai 1b47b12895 Merge remote-tracking branch 'upstream/master' 2015-02-26 23:16:25 -08:00
Vijay Pai 64ac47f389 clang-format all these files 2015-02-26 17:59:51 -08:00
vjpai 56c5129629 Rename Async methods from generator to avoid naming conflicts to
bind and other functions
2015-02-26 17:01:35 -08:00
Craig Tiller cf133f41f8 Make it possible to compile with gcc4.6 2015-02-26 14:27:05 -08:00
Craig Tiller 25f6cd7a97 Merge github.com:grpc/grpc into credit
Conflicts:
	examples/pubsub/publisher_test.cc
	examples/pubsub/subscriber_test.cc
	include/grpc++/create_channel.h
	src/cpp/client/create_channel.cc
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
	test/cpp/util/create_test_channel.cc
2015-02-24 08:12:05 -08:00
Craig Tiller b9d91eb454 Merge github.com:google/grpc into deprecate-c++
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
2015-02-23 17:13:40 -08:00
Craig Tiller e4fe844b67 s/CreateChannel/CreateChannelDeprecated
For the 2-argument version of CreateChannel.

This is a temporary step until #711 is ready to roll out.
2015-02-23 13:55:15 -08:00
Craig Tiller fd1b49b757 Move to unique_ptr for all GRPC returned objects 2015-02-23 12:53:39 -08:00
Craig Tiller 42bc87c097 Update C++ server with new core API
And reflects the C++ API in ServerBuilder.
2015-02-23 09:58:23 -08:00
Craig Tiller 47c83fdaf7 Credentials prototyping
- Remove CredentialsFactory as it's unnecessary
- Effectively make Credentials a channel factory, allowing different credential types to create different channel types - this gives us a hook so that InsecureCredentials can at runtime instantiate a different kind of channel as required - giving us a way of generating an openssl free version of grpc++.
- Server credentials not touched yet, but they'll need to be updated.
2015-02-23 09:58:22 -08:00
Nicolas Noble 980a630e7f Merge pull request #605 from vjpai/mac
Mac build is now ready
2015-02-19 10:17:03 -08:00
vjpai d5577aac67 More typecasts to avoid sign-comparison problems on EXPECT_EQ 2015-02-18 22:26:48 -08:00
Craig Tiller 2d11c93ab5 Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 15:51:50 -08:00
Craig Tiller 8a287d1a1b Merge pull request #588 from yang-g/c++api
Async client api change. Add a ClientAsyncResponseReader.
2015-02-18 14:50:14 -08:00
Yang Gao 3a5e5495e5 Async client api change. Add a ClientAsyncResponseReader. Make the api similar to streaming and symmetric to server side. 2015-02-18 14:32:38 -08:00
Craig Tiller eaaee49f9b Merge github.com:grpc/grpc into an-update-on-c++ 2015-02-18 13:14:15 -08:00
Craig Tiller 492968f7d9 Server side cancellation receive support 2015-02-18 13:14:03 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Yang Gao da699b8bc1 do not leak reader or writer 2015-02-18 01:10:22 -08:00
Yang Gao 2b7f537546 Add metadata test with rpc. Adding/fixing things to make it work 2015-02-18 00:45:53 -08:00
Craig Tiller 771fefb41b Merge pull request #18 from yang-g/c++api
Add missing APIs and a first metadata test, and test passes
2015-02-13 16:30:49 -08:00
Yang Gao 406b32f663 Add missing APIs and a first metadata test, and test passes 2015-02-13 16:25:33 -08:00
Craig Tiller 857680be2c Compile fixes 2015-02-13 15:19:48 -08:00
Yang Gao 0e0d8e11e6 add a simple server streaming e2e test, which passes 2015-02-13 14:40:41 -08:00
Yang Gao 005f18a6a1 change ServerAsyncReader API and add a simple clientstreaming test, it passes 2015-02-13 10:22:33 -08:00
Yang Gao c05b6cb89d add a bidi test and simplify the test a bit, test passes 2015-02-13 00:34:10 -08:00
Yang Gao bb84a30f07 let the client/server use their own cq and pretty the test 2015-02-12 23:30:12 -08:00
Craig Tiller 0220cf14b0 Add end2end async unary single threaded test (compiles) 2015-02-12 17:39:26 -08:00
Craig Tiller ec3257c120 Fix end2end leaks 2015-02-12 15:59:43 -08:00
Craig Tiller 7418d01de4 Make end2end_test use fewer threads
Helps finding interesting threads in gdb much easier
2015-02-11 15:25:03 -08:00
Craig Tiller 4d0fb5f1c0 Fixup callers with new api 2015-02-09 16:27:22 -08:00
Craig Tiller f8ac5d846c Fixup callers with new api 2015-02-09 16:24:20 -08:00
Craig Tiller 5319164875 Cleanup 2015-02-09 16:15:23 -08:00
Craig Tiller 1d2e21962e Server progress 2015-02-09 15:25:21 -08:00
Craig Tiller 7b01878736 Fix returned status
The client should return status deadline exceeded when the deadline is
exceeded (not cancelled status)
2015-01-16 09:53:39 -08:00
Craig Tiller 14e60e9f8b Use C signal handling in C++ end2end 2015-01-14 11:21:21 -08:00
Craig Tiller 1ee7cb0c0b Merge github.com:google/grpc into format 2015-01-13 12:39:00 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
Craig Tiller b2a42f3271 Make this file compile 2015-01-12 16:41:56 -08:00
Craig Tiller 35e3971e89 Make this file compile 2015-01-12 16:41:24 -08:00
yangg 1b151096d1 Add impl subdirectory under public and move headers that need to be installed
to it.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83640373
2015-01-12 11:22:02 -08:00
yangg 4105e2b86c Add ServiceAccount Credentials wrapping and handle credentials creation
failure.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634736
2015-01-12 11:22:01 -08:00
yangg 1456d15221 Add a test to export two TestService on the same server, only with different
package names. Make sure they work as intended.

This is based on []
	Change on 2015/01/08 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83558743
2015-01-09 17:54:03 -08:00
yangg ed5e7e006b Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83351442
2015-01-06 17:45:46 -08:00
yangg 59dfc90f57 Client side implementation of creating channel with credentials.
The old test_ssl_channel related code is deleted and the new create channel
call is used for interop tests.
	Change on 2014/12/19 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82540921
2014-12-29 16:59:06 -08:00
yangg da029e39b6 Add a test where client side sees a deadline expired status.
The test is not completely right and I filed [] to track it.
	Change on 2014/12/18 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82442464
2014-12-19 13:14:58 -08:00
yangg 246ec3bd3a Set host to channel's target when creating a call.
Change on 2014/12/17 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82377896
2014-12-19 13:07:20 -08:00
yangg a4b6f5df94 Add ServerContext. It is currently empty and deadline and metadata will come to
it in subsequent cl's.
	Change on 2014/12/17 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82372934
2014-12-19 13:02:04 -08:00
nnoble 0c475f0ad7 Updating moe_db.txt with the latest equivalence since the ruby import changed the exported structure.
Change on 2014/12/01 by nnoble <nnoble@google.com>
-------------
new [] file for grpc testing.
	Change on 2014/12/02 by donnadionne <donnadionne@google.com>
-------------
Fix unfinished calls in thread_stress_test.

Previously we had an early return if we cancelled a stream part way through a
message. Correct this, so that half close and full close signals are propagated
up the stack correctly so that higher level state machines can see the
termination.
	Change on 2014/12/02 by ctiller <ctiller@google.com>
-------------
Remove dependency on internal C code.
	Change on 2014/12/02 by ctiller <ctiller@google.com>
-------------
Turn off the flaky bit from thread_stress_test.
	Change on 2014/12/02 by ctiller <ctiller@google.com>
-------------
Add test cases of empty request/response, request streaming, response streaming, and half duplex streaming.

Bring up the GFE/ESF for mannual test:
[] build java/com/google/net/[]/testing/integration/hexa:server_components_env
[]-bin/java/com/google/net/[]/testing/integration/hexa/server_components_env --manual --rpc_port=25000 --use_autobahn
	Change on 2014/12/02 by chenw <chenw@google.com>
-------------
Make echo/server.c and fling/server.c shutdown cleanly on SIGINT, and update
the relevant tests to exercise this mechanism.

Now "[] coverage" and the memory leak detector are able to see into the
server processes.
	Change on 2014/12/02 by pmarks <pmarks@google.com>
-------------
Allow the # of channels to be configurable in this performance test. The threads will use the channels in statically-defined round-robin order (not based on when RPCs complete on any channel). The interesting cases are #channels=1 or #channels=#threads (we previously only had the latter case)
	Change on 2014/12/02 by vpai <vpai@google.com>
-------------
Fixed a typo and reworded a comment.
	Change on 2014/12/02 by gnezdo <gnezdo@google.com>
-------------
Require the grpc_call in this ClientContext to be NULL before allowing set_call to be invoked. Otherwise, it's an indication of a leak somewhere.
	Change on 2014/12/02 by vpai <vpai@google.com>
-------------
Correctly return status other than ok and add a test for it.
	Change on 2014/12/02 by yangg <yangg@google.com>
-------------
Better C++ guards for grpc_security.h
	Change on 2014/12/02 by nnoble <nnoble@google.com>
-------------
Use nullptr instead of NULL for consistency.
	Change on 2014/12/02 by vpai <vpai@google.com>
-------------
Updates the ruby gRPC service class to require the serialization method to be
a static method

- this brings it inline with the proto3 ruby API
- it adds a monkey patch to allow existing proto (beefcake) to continue working.
	Change on 2014/12/02 by temiola <temiola@google.com>
-------------
Adding a buildable unit to the blue print file.

Added the buildable unit as its name will be usesd as tap project id.

This test will fail right away in tap until tests are actually added.
	Change on 2014/12/02 by donnadionne <donnadionne@google.com>
-------------
Move interop ESF C++ server from Java to grpc directory.

Tests passed:
[] test javatests/com/google/net/[]/testing/integration/hexa/...
[] test net/grpc/testing/interop/esf_server/...
	Change on 2014/12/02 by chenw <chenw@google.com>
-------------
Return a lame channel as opposed to NULL when secure channel creation fails.

- Looks like we're going to need something similar server-side.
- I changed the prototype of the lame client channel factory to take an
explicit void as I think this is better practice in C. Let me know if you
disagree and I will revert these changes.
	Change on 2014/12/02 by jboeuf <jboeuf@google.com>
-------------
Putting ALPN support where it belongs.
	Change on 2014/12/02 by jboeuf <jboeuf@google.com>
-------------
GOAWAY send path.

Sends a GOAWAY frame when shutting down.
This is not read and understood yet.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Adds support for secure channels and servers.

- wraps new C apis (credentials, server_credentials) and Server#add_secure_http_port
- adds tests to ensure credentials and server credentials can be created
- updates client_server_spec to run the client_server wrapper layer end-to-end tests using a secure channel
	Change on 2014/12/03 by temiola <temiola@google.com>
-------------
Fix existing issues regarding out of order events.

At the client side, using pluck as the client_metadata_read can happen anytime after invoke.

At the server side, allow halfclose_ok and rpc_end to come in reverse order.
	Change on 2014/12/03 by yangg <yangg@google.com>
-------------
Don't track coverage of tests.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Change UnaryCall to conform standard test requirement of LargeUnaryCall.
	Change on 2014/12/03 by yangg <yangg@google.com>
-------------
updating alpn version to h2-15 ensure all interop are on the same version and working.

Java and go are not ready for h2-16 yet.
	Change on 2014/12/03 by donnadionne <donnadionne@google.com>
-------------
Add config to bring echo server in [].

This is used to test production GFE as its bckend.
	Change on 2014/12/03 by chenw <chenw@google.com>
-------------
In preparation for fixing shutdown race issues, change em to take ownership of
the file descriptor. Add an API to grpc_tcp to take an already created
grpc_em_fd object, and change tcp_client to use that API.

This is needed because otherwise an em user's close() of the file descriptor
may race with libevent internals. That's not an issue yet because destroy()
frees the events inline, but that can't be done safely if there is a concurrent
poller.
	Change on 2014/12/03 by klempner <klempner@google.com>
-------------
Fixing TAP opensource build

We don't want to compile and run C++ tests in the C target.
	Change on 2014/12/03 by nnoble <nnoble@google.com>
-------------
Move and separate interop tests by languages.

Small fixes to the test runner.

Improving logging.
	Change on 2014/12/03 by donnadionne <donnadionne@google.com>
-------------
Fixing the opensource build:

-) The C/C++ split wasn't done up to the 'dep' target level
-) The alpn.c file was missing from build.json
	Change on 2014/12/03 by nnoble <nnoble@google.com>
-------------
Adding blue print files after projects exist
	Change on 2014/12/03 by donnadionne <donnadionne@google.com>
-------------
Refactor StreamContext using the new completion_queue_pluck API.

The dedicated the poller thread has been removed.
This CL keeps the current behavior to make it short. There is one following to
make it usable for both client and server.

The tags for pluck is based on the address of this StreamContext object for potential debug use.

The Read/Write and Wait cannot be called concurrently now and this might need to be fixed.
	Change on 2014/12/03 by yangg <yangg@google.com>
-------------
Binary encoding utilities.

Support base64 encoding, HPACK static huffman encoding, and doing both at once.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Enforce Makefile regeneration in presubmits.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Make CloseSend() send a real zero-length control message to indicate EOS.
	Change on 2014/12/03 by zhaoq <zhaoq@google.com>
-------------
Prefer to create dualstack sockets for TCP clients and servers, with automatic
fallback for environments where IPV6_V6ONLY can't be turned off.
	Change on 2014/12/03 by pmarks <pmarks@google.com>
-------------
Add opensource path to build targets.

Ensure that MOE is going to run.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
Add PingPong test case. Delete FullDuplex test case. The latter is not specified for client in

https://docs.google.com/document/d/1dwrPpIu5EqiKVsquZfoOqTj7vP8fa1i49gornJo50Qw/edit#
	Change on 2014/12/03 by chenw <chenw@google.com>
-------------
Make generate_projects.sh check out the generated targets.
	Change on 2014/12/03 by ctiller <ctiller@google.com>
-------------
rspec cleanup

- stops declaring specs within the GRPC module
- splits Bidi streaming specs into a separate test suite

adding tests in the GRPC module was a mistake, it pollutes the module and can
affect other tests that run later by the test runner

the bidi tests are currently flaky, having them run in their own test suite
allows having two separate continuous builds (once ruby gRPC is on GitHub),
one that includes bidi where we tolerate flakiness, and another that does not,
where there should be no flakiness at all
	Change on 2014/12/03 by temiola <temiola@google.com>
-------------
Adding support for composite and IAM credentials.

- For now, we don't do any checks on credentials compatibility in the
composite credentials. Maybe we'll add that later.
- Refactored the end to end security tests so that we always use the public API
(except for the fake security context which is not exposed).
	Change on 2014/12/03 by jboeuf <jboeuf@google.com>
-------------
Make GPR library buildable in Visual Studio 2013.
	Change on 2014/12/04 by jtattermusch <jtattermusch@google.com>
-------------
Adds codegen for ruby

This is being added now that ruby's proto and grpc apis are defined and stable
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Prevent NewStream() from sending negative or 0 timeout.
	Change on 2014/12/04 by zhaoq <zhaoq@google.com>
-------------
Add a grpc_sockaddr_to_string() function, and use it when logging bind
failures.  Also improve const-correctness in some earlier code.

I'm not certain whether inet_ntop() will need any platform-specific
implementations, but for now the compiler offers no complaints.

Demo:
$ []-bin/net/grpc/c/echo_server 1.2.3.4:80
... tcp_server.c:139] bind addr=[::ffff:1.2.3.4]:80: Permission denied
	Change on 2014/12/04 by pmarks <pmarks@google.com>
-------------
Refactoring - moves c wrapped classes to a submodule Google::RPC::Core

- this allows for an explicit rule when reading through gRPC ruby code for telling
when an object is pure ruby or wrapped C
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Fixes the bidi_call

[]
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Fixing dev build when activating surface traces.
	Change on 2014/12/04 by nnoble <nnoble@google.com>
-------------
Updates the tests to reflect that fact that some Credentials compose works.
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Making the generate_project_test actually do something.
	Change on 2014/12/04 by nnoble <nnoble@google.com>
-------------
Rename "esf_server" to "[]4_server". Delete "test_sever" from Java directory.
	Change on 2014/12/04 by chenw <chenw@google.com>
-------------
Added PHP client interop tests. Tested large_unary against the C++ server.
	Change on 2014/12/04 by mlumish <mlumish@google.com>
-------------
Refactor grpc_create_dualstack_socket() by pulling the setsockopt into its own
function.  This separates the magic test flag from the real fallback logic.
	Change on 2014/12/04 by pmarks <pmarks@google.com>
-------------
Fixes the type of the constant used for test cert hostname
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Disabling these tests as they're causing flakiness.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Change intptr --> uintptr.

Handles the case where a void* turns into a negative number, which then gets
hashed into a negative bucket and segfaults.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Add a test fixture to force parsers to handle one byte at a time.

This should expand coverage and hopefully prevent errors at some point (it
seems to pass out of the box for now though).
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
The code generator isn't +x.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Updates math_client and math_server to allow construction using crednetials

By:
- Extending rpc_server constructor so that it takes a credentials keyword param
- Extending client_stub constructor so that it takes a credentials keyword param
	Change on 2014/12/04 by temiola <temiola@google.com>
-------------
Format output a little more nicely.

Print each line of output separately - previously logging.info was truncating this at some maximum length, and logs were getting lost.
	Change on 2014/12/04 by ctiller <ctiller@google.com>
-------------
Up timeout for this test.

Under TSAN, if we process one byte at a time, this timeout can be reached - and I think this is the cause of the following flake:
[]
	Change on 2014/12/05 by ctiller <ctiller@google.com>
-------------
Adding more error logging for ssl.
	Change on 2014/12/05 by jboeuf <jboeuf@google.com>
-------------
Read path for goaway.

Still need to add hooks to deprecate a channel on the client side when goaway
is received.
	Change on 2014/12/05 by ctiller <ctiller@google.com>
-------------
Separate accept() into server_accept() and server_end_of_initial_metadata().

This allows servers to initiate reads before finishing writing metadata.
	Change on 2014/12/05 by ctiller <ctiller@google.com>
-------------
Fix for breakage 11512317 - adding missing test files.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
grpc c++ server side streaming support.

This is based on [] There is a lot of room to clean up the internal implementation which may require refactoring of CompletionQueue. The current cl serves as a working implementation with the missing interfaces.

The sample generated files are included and will be removed before submitting.
	Change on 2014/12/05 by yangg <yangg@google.com>
-------------
Changed to the latest timeout format again (search "grpc-timeout" in [] for the spec).
	Change on 2014/12/05 by zhaoq <zhaoq@google.com>
-------------
Fixing opensource build.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
Making absolutely sure we can do the moe export by adding a sh_test for it.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
Change :scheme psuedo-header from "grpc" to "http" or "https".
	Change on 2014/12/05 by zhaoq <zhaoq@google.com>
-------------
Add server credential wrapping for c++ server. It only wraps ssl and []2 for now.

The ServerCredentials class and the factory class are in a similar fashion as
client side wrapping. The difference is the factory method returns shared_ptr
instead of unique_ptr as the server builder needs to keep a reference to it for
actually creating the server later.

The integration will happen in a following cl.
	Change on 2014/12/05 by yangg <yangg@google.com>
-------------
Fixed bugs in new_grpc_docker_builder.sh
	Change on 2014/12/05 by mlumish <mlumish@google.com>
-------------
In secure endpoint, hold a refcount for the life of a write callback if the
write does not complete immediately.
	Change on 2014/12/05 by klempner <klempner@google.com>
-------------
Add migration support to MOE and have TAP verify it doesn't break.

Migration support allows mirroring commits from [] into the git repo, instead of just a dump of the current source.
	Change on 2014/12/05 by ejona <ejona@google.com>
-------------
Change initial window size to 65535 according http2 draft 15.
	Change on 2014/12/05 by zhaoq <zhaoq@google.com>
-------------
Re-enable the flaky cases in dualstack_socket_test, with additional logging to
help track down the problem if it surfaces again.

This also seems like a good opportunity to make grpc_socket_utils a separate
library, as it's not really specific to TCP.

Example output:
logspam: [], 26570) resolved 2 addrs in 37ms:
logspam:   [0] [::1]:26570
logspam:   [1] 127.0.0.1:26570
	Change on 2014/12/05 by pmarks <pmarks@google.com>
-------------
Opensource build fixes.

-) A function that has a return type should actually return something.
-) Don't pass unsigned chars to strlen and strncmp.
	Change on 2014/12/05 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81458281
2014-12-05 16:00:44 -08:00
Nicolas Noble b7ebd3b8c6 Initial import. 2014-11-26 16:33:03 -08:00