Commit Graph

352 Commits

Author SHA1 Message Date
Craig Tiller 06cb1a9d93 Initial interface rework to allow knowing whether to pull payload at registration, not at request time 2016-04-04 08:10:47 -07:00
Craig Tiller d4c9833187 Reposition files to optionalize client_config system 2016-03-31 13:45:47 -07:00
Craig Tiller 64a12c55df Merge github.com:grpc/grpc into copyright-fix 2016-03-31 07:49:58 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Craig Tiller 3bd9695939 Merge github.com:grpc/grpc into idempotent 2016-03-28 12:43:02 -07:00
Craig Tiller b7f3f6eec4 Fix copyright 2016-03-25 17:13:09 -07:00
Craig Tiller 9533d042d4 Fix includes 2016-03-25 17:11:06 -07:00
Craig Tiller 2e1903638e Fix copyrights 2016-03-25 14:33:26 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
Craig Tiller 44654553de Merge github.com:grpc/grpc into idempotent 2016-03-21 09:04:06 -07:00
Craig Tiller 4f7ffa05a4 Merge github.com:grpc/grpc into idempotent 2016-03-16 07:58:20 -07:00
Masood Malekghassemi 6643ce7ed1 Clean up test 2016-03-14 20:36:14 -07:00
Craig Tiller a45782f090 Fix copyright 2016-03-11 20:15:51 -08:00
Craig Tiller 9fb89ea9e3 If we cant check timers due to contention, at least make sure we do a follow up check soon 2016-03-11 20:12:45 -08:00
Craig Tiller 948fa1b1b5 Merge branch 'huh_omg' of github.com:ctiller/grpc into huh_omg 2016-03-11 19:29:33 -08:00
Craig Tiller 3591482a37 Expand lock 2016-03-11 19:29:23 -08:00
Craig Tiller d24fc85b59 Fix cast 2016-03-11 17:18:19 -08:00
Craig Tiller 64baf2cbab Extend timeout 2016-03-11 17:16:33 -08:00
Craig Tiller 0ce7bec923 Fail faster 2016-03-11 17:02:07 -08:00
Craig Tiller 57e2743b65 Add contributed test 2016-03-11 16:53:58 -08:00
Craig Tiller b093686e59 Fix copyright 2016-03-10 07:17:25 -08:00
Craig Tiller df5231ec09 Implement tests 2016-03-10 07:00:47 -08:00
vjpai 73d2a12d4b Fix copyright 2016-02-03 16:19:30 -08:00
yang-g 70fa0da7f1 add a test 2016-02-02 23:22:48 -08:00
David G. Quintas ee7e1c20ed Merge pull request #4950 from ctiller/offload-racing
Preparatory changes for work shedding
2016-01-28 18:10:07 -08:00
Craig Tiller a93a25f7bc Update copyrights 2016-01-28 13:55:49 -08:00
Craig Tiller 6c39686dfa Preparatory changes for work shedding
- cleanup: change grpc_iomgr_cb_func to take a bool instead of int
  success
- cleanup: follow through with iomgr callback scheduling functions
- prepare: add a workqueue to offload to to grpc_exec_ctx_enqueue*
  functions
2016-01-28 13:53:40 -08:00
David Garcia Quintas b523c732d1 async_stream.h done. Compiles 2016-01-25 18:22:28 -08:00
David Garcia Quintas 2425bbbc55 Further work. Compiles. WIP 2016-01-25 17:32:48 -08:00
David Garcia Quintas 08a0a3306e Made "codedgen" directories closed over #includes 2016-01-21 01:04:36 -08:00
Craig Tiller be0327bfee Update new files 2016-01-06 13:57:40 -08:00
Craig Tiller ea21ca234c Fix makefile, codegen bugs 2016-01-04 12:34:29 -08:00
Craig Tiller 47c50cc4d3 zookeeper is platform specific 2016-01-04 08:48:37 -08:00
Craig Tiller ab23045414 Add a test that public headers compile as C99 2016-01-04 08:18:43 -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 54bc8a959e Stabilize test by increasing timeout 2015-12-15 15:00:48 -08:00
Craig Tiller 0bdc3a58f6 Merge branch 'cf' into proxy-crash 2015-12-14 12:11:01 -08:00
Craig Tiller 620e965c1b clang-format after last weeks test-fest 2015-12-14 12:02:50 -08:00
Craig Tiller 4bf292890c Fix proxy end2end tests
Some transport callbacks weren't getting triggered. We now ensure that
this always occurs.

Additionally: left some debug only code around to make this class of bug
easier to diagnose in the future.
2015-12-14 11:25:48 -08:00
Craig Tiller ef55655f79 Add includes 2015-12-11 19:56:34 -08:00
Craig Tiller e27954ca2e Fix memory leaks 2015-12-11 15:33:08 -08:00
Craig Tiller b3466dc38e Also delete cq 2015-12-11 14:40:15 -08:00
Craig Tiller 10c4b3c70d Add a test for binding a server to the same port twice; fix crashes 2015-12-11 14:38:18 -08:00
Craig Tiller 65af7af148 Merge pull request #4405 from yang-g/fixit_server_c
add tests for public server apis
2015-12-11 14:01:10 -08:00
yang-g 07f752e46f merge with head 2015-12-11 10:35:53 -08:00
yang-g 14bdea1853 Merge remote-tracking branch 'upstream/master' into fixit_server_c 2015-12-11 10:34:09 -08:00
Sree Kuchibhotla c54f88ee8d Merge pull request #4403 from yang-g/fixit_secure_channel_create_c
add a test for secure_channel_create and fix cleanup code
2015-12-10 20:33:16 -08:00
yang-g e682c3eea4 add test for lame client transport op 2015-12-10 15:35:34 -08:00
yang-g 5a3bc8ea7f add test coverage for channel_connectivity check 2015-12-10 14:48:37 -08:00
yang-g c3d94fb82a add tests for public server apis 2015-12-10 14:38:00 -08:00
yang-g d482e59d3a add a test for secure_channel_create and fix cleanup code 2015-12-10 14:04:00 -08:00
Sree Kuchibhotla 07c4b573cf Merge pull request #4368 from yang-g/fixit_lame_client_c
add test for lame_client get_peer and recv_initial_metadata
2015-12-10 12:05:52 -08:00
yang-g 68f6b9ead2 separate recv intial metadata and trailing metadata 2015-12-09 15:37:46 -08:00
yang-g 95ee080883 merge with head 2015-12-09 11:26:43 -08:00
yang-g c68db44702 add test for lame_client get_peer and recv_initial_metadata 2015-12-09 11:23:34 -08:00
yang-g fe9a975655 Add a test for failing to add a port 2015-12-09 10:47:18 -08:00
yang-g 13affcb8e9 merge with head 2015-12-09 10:26:33 -08:00
yang-g c0ed509d93 Add test for un-resolvable target 2015-12-09 08:48:08 -08:00
yang-g 5809d2bd7e merge with head 2015-12-09 07:49:18 -08:00
yang-g 7c6d1ad1d4 add test for more plucks than allowed 2015-12-08 16:07:05 -08:00
yang-g 0edc362f91 Merge remote-tracking branch 'upstream/master' into fixit_channel_c 2015-12-08 10:31:48 -08:00
Yang Gao cf45f0a44e Merge pull request #4336 from ctiller/windows-fix
Fix windows build
2015-12-08 10:31:32 -08:00
Sree Kuchibhotla fe5e877f44 Merge pull request #4333 from yang-g/fixit_completion_queue_c
add test for pluck after shutdown
2015-12-08 10:19:00 -08:00
yang-g 0346883b0b do the right thing? 2015-12-08 10:10:44 -08:00
Craig Tiller 858be6c58c Fix windows build 2015-12-08 09:29:44 -08:00
yang-g 0c6daa0e86 merge with head 2015-12-08 08:10:29 -08:00
yang-g 26fdaa5751 Fix msan 2015-12-08 08:05:19 -08:00
yang-g 1ed62e4efc add test for pluck after shutdown 2015-12-08 08:00:24 -08:00
yang-g f1183300ce add test for global plugin 2015-12-07 16:02:05 -08:00
yang-g 7c090f8215 add tests for the error messages 2015-12-07 15:46:04 -08:00
yang-g 9caec653ea add test for byte_buffer_copy 2015-12-07 09:32:44 -08:00
Craig Tiller 3c53bb2f46 clang-format 2015-11-10 14:24:36 +00:00
David Garcia Quintas c76ff107b6 Removed consts to make MSVC happy 2015-11-04 19:22:44 -08:00
David Garcia Quintas 6eb3925a70 Added grpc_byte_buffer_reader_readall 2015-10-30 17:24:41 -07:00
David Garcia Quintas f747bbc043 s/grpc_alarm/grpc_timer && s/grpc_cq_alarm/grpc_alarm 2015-10-04 23:09:47 -07:00
David Garcia Quintas cb954cfc28 Removed exec_ctx from cq_alarm's functions 2015-10-04 14:52:13 -07:00
David Garcia Quintas 0dfbdf6e54 Added grpc_cq_alarm 2015-10-04 12:13:26 -07:00
Craig Tiller b8b1a462e5 Finish cleanup 2015-09-22 12:50:03 -07:00
Craig Tiller a82950e683 clang-format all core files 2015-09-22 12:33:20 -07:00
Craig Tiller e7db29f8c7 Move argument passing to start of list 2015-09-22 10:55:42 -07:00
Craig Tiller f5768a6765 Rename init 2015-09-22 10:54:34 -07:00
Craig Tiller 098047b53a Rename run 2015-09-22 10:53:14 -07:00
Craig Tiller 1be70ccdb8 Move arguments to the start of lists 2015-09-22 10:45:28 -07:00
Craig Tiller 45724b35e4 indent pass to get logical source lines on one physical line 2015-09-22 10:42:19 -07:00
Craig Tiller d9ccbbf6b9 Rename call_list to closure_list 2015-09-22 09:30:00 -07:00
Craig Tiller ba496454b2 Fixes 2015-09-21 17:15:19 -07:00
Craig Tiller dfff1b8126 Call list progress 2015-09-21 14:39:57 -07:00
Craig Tiller 32ca48ce0b Core compiles with -Wsign-conversion 2015-09-10 11:47:15 -07:00
Craig Tiller 03ab064fb7 Fix completion_queue_test 2015-09-02 12:22:49 -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
Nicolas "Pixel" Noble 9d72b149a9 Merge branch 'master' of github.com:grpc/grpc into the-ultimate-showdown
Conflicts:
	include/grpc/grpc.h
	src/core/surface/channel.c
	src/core/surface/channel_create.c
	src/core/surface/completion_queue.c
	src/cpp/client/channel.cc
	src/cpp/client/insecure_credentials.cc
	src/csharp/ext/grpc_csharp_ext.c
	src/node/ext/call.cc
	src/node/ext/channel.cc
	src/php/ext/grpc/call.c
	src/php/ext/grpc/channel.c
	src/python/grpcio/grpc/_adapter/_c/types/channel.c
	src/ruby/ext/grpc/rb_channel.c
	test/core/end2end/dualstack_socket_test.c
	test/core/end2end/fixtures/chttp2_fullstack.c
	test/core/end2end/fixtures/chttp2_fullstack_compression.c
	test/core/end2end/fixtures/chttp2_fullstack_uds_posix.c
	test/core/end2end/fixtures/chttp2_fullstack_with_poll.c
	test/core/end2end/multiple_server_queues_test.c
	test/core/end2end/no_server_test.c
	test/core/end2end/tests/bad_hostname.c
	test/core/end2end/tests/cancel_after_accept.c
	test/core/end2end/tests/cancel_after_accept_and_writes_closed.c
	test/core/end2end/tests/cancel_after_invoke.c
	test/core/end2end/tests/cancel_before_invoke.c
	test/core/end2end/tests/cancel_in_a_vacuum.c
	test/core/end2end/tests/census_simple_request.c
	test/core/end2end/tests/disappearing_server.c
	test/core/end2end/tests/early_server_shutdown_finishes_inflight_calls.c
	test/core/end2end/tests/empty_batch.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/ping_pong_streaming.c
	test/core/end2end/tests/registered_call.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_compressed_payload.c
	test/core/end2end/tests/request_with_flags.c
	test/core/end2end/tests/request_with_large_metadata.c
	test/core/end2end/tests/request_with_payload.c
	test/core/end2end/tests/server_finishes_request.c
	test/core/end2end/tests/simple_delayed_request.c
	test/core/end2end/tests/simple_request.c
	test/core/end2end/tests/simple_request_with_high_initial_sequence_number.c
	test/core/fling/client.c
	test/core/fling/server.c
	test/core/surface/lame_client_test.c
2015-08-08 01:45:38 +02:00
Craig Tiller e1b0e6ee12 s/inherit/propagate/g 2015-07-31 17:07:31 -07:00
Craig Tiller 99e61645ce Update wrappers, tests to new create_call() 2015-07-31 17:01:47 -07:00
Nicolas "Pixel" Noble 4960516c63 Properly initializing reserved pointer in tests. 2015-08-01 00:33:29 +02:00
Nicolas "Pixel" Noble 9a123df2cd Fixing C/C++ tests. 2015-07-29 23:45:08 +02:00
Craig Tiller 1b22b9db94 Add grpc_call_get_peer 2015-07-20 13:42:22 -07:00
Craig Tiller 75cfb044f3 Merge github.com:grpc/grpc into no-worries-i-can-wait 2015-07-13 08:42:22 -07:00
Craig Tiller 143e7bf0cf Introduce a clock type field onto gpr_timespec.
Use it to validate that arithmetic on time types makes even some vague
kind of sense.
2015-07-13 08:41:49 -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
Vijay Pai ad262a1c4a Merge pull request #2384 from ctiller/spiderman-cant-compete
Fix timeout (and probably TSAN builds...)
2015-07-10 16:36:44 -07:00
Craig Tiller bd54ec4192 1 != 10 2015-07-10 15:27:44 -07:00
Craig Tiller 12cf537a72 clang-format affected files 2015-07-09 13:48:11 -07:00
Craig Tiller 97fc6a3f3f Rewrite completion queue internals to use pre-allocation of events 2015-07-08 15:31:35 -07:00
Craig Tiller a368bd26d1 Merge github.com:grpc/grpc into footprints-on-the-sands-of-time 2015-07-06 11:04:14 -07:00
Craig Tiller d1dd3a68a2 Merge pull request #2117 from dgquintas/bb_from_bbreader
Introduced function to create byte buffers from the output of a byte buffer reader.
2015-07-05 13:30:39 -07:00
Craig Tiller f3756c1e0d Introduce multiple clocks to GPR 2015-07-01 17:21:01 -07:00
David Garcia Quintas 3df5c44c84 Introduced function to create byte buffers from the output of a byte buffer reader. 2015-06-17 18:33:24 -07:00
Craig Tiller 9a57633233 clang-format affected files 2015-06-17 10:21:49 -07:00
Craig Tiller bf8ac3f406 Merge branch 'you-complete-me' into we-dont-need-no-backup 2015-06-17 09:15:48 -07:00
David Garcia Quintas 1d5aca5de0 Added flags support to grpc_op.
Which includes its propagation to grpc_ioreq and validation mechanisms for checking that only known bits are set ot in).
Also added an internal flag (GRPC_WRITE_INTERNAL_COMPRESS) mask for its use in signaling compressed messages.
2015-06-14 14:42:04 -07:00
Craig Tiller 4671122995 Merge branch 'you-complete-me' into we-dont-need-no-backup 2015-06-09 22:59:31 -07:00
David Garcia Quintas 59f905d79a Changes to byte_buffer based on comments. 2015-06-08 20:06:17 -07:00
David Garcia Quintas 25d02d5637 Made grpc_byte_buffer_reader able to decompress msgs. 2015-06-05 16:34:33 -07:00
Craig Tiller 2c42ef3eb3 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-05 07:09:56 -07:00
Craig Tiller 669c139a4a Merge pull request #1866 from dgquintas/stack-allocate-bb-reader
Removed grpc_byte_buffer_reader_{create,destroy}.
2015-06-02 16:59:00 -07:00
Craig Tiller 79e11c6d05 Merge github.com:grpc/grpc into we-dont-need-no-backup 2015-06-02 12:56:26 -07:00
David Garcia Quintas 30bd4eb5cc Removed grpc_byte_buffer_reader_{create,destroy}.
Introduced grpc_byte_buffer_init instead. It's now the user's responsibility to
manage memory.
2015-06-01 21:20:47 -07:00
Craig Tiller c0c484481f Extend the test case 2015-06-01 20:04:36 -07:00
Craig Tiller 59657dbef8 Add a completion queue test
- create completion queue
- call shutdown
- call next
2015-06-01 20:01:15 -07:00
Craig Tiller 44883302c3 Remove condition variable from pollset 2015-05-28 12:44:27 -07:00
Craig Tiller 356961916d Remove all uses of __FUNCTION__ 2015-05-24 15:00:37 -07:00
Craig Tiller f7670f3054 Clean out old code 2015-05-11 09:13:01 -07:00
Craig Tiller 64be9f7a30 C Core API cleanup.
Simplify grpc_event into something that can be non-heap allocated.
Deprecate grpc_event_finish.
Remove grpc_op_error - use an int as this is more idiomatic C style.
2015-05-04 14:53:51 -07:00
Craig Tiller 5fe7e5d81c Fix some memory leaks 2015-05-01 10:52:35 -07:00
Craig Tiller f968980665 Fix cq test 2015-04-29 14:23:03 -07:00
Craig Tiller 2365c7d467 Fix lame client test 2015-04-29 13:55:47 -07:00
Craig Tiller 6902ad2e9c Switching to batch oriented metadata passing 2015-04-16 14:22:28 -07:00
Craig Tiller 29f1314282 Merge github.com:grpc/grpc into credit 2015-02-26 11:23:01 -08:00
Craig Tiller 8ad8a41a84 Introduce slowdown factor for unit test deadlines
Dramatically lowers (eliminates maybe?) false negatives from ?SAN runs.
2015-02-25 08:36:40 -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 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
Craig Tiller 2d9c51242a Add mixed shutdown/init test 2015-02-17 11:41:46 -08:00
Craig Tiller 35108f6527 Allow grpc_init to be called multiple times 2015-02-17 11:24:15 -08:00
Craig Tiller 40d2a4307b Merge branch 'async-api-prep' of github.com:ctiller/grpc into async-api 2015-02-02 15:29:14 -08:00
Craig Tiller a7cac78516 Prepare for the new batch call API.
Rename all core API functions that are on their way to deprecation with
an _old tag across all wrappings.
2015-02-02 10:16:30 -08:00
Craig Tiller 1e0d4c43d1 Rename & semantic fixup progress 2015-01-30 16:17:29 -08:00
Craig Tiller 44c02738ed Merge github.com:google/grpc into async-api
Conflicts:
	test/core/echo/echo_test.c
2015-01-29 21:01:47 -08:00
Nicolas "Pixel" Noble 213ed91850 Re-enabling errors on warning, disabling unused parameter warning, and fixing all subsequent errors. 2015-01-30 02:11:35 +01:00
Craig Tiller cce17ac033 First compiling version of the new C api. 2015-01-27 13:54:14 -08:00
Yang Gao 5fd0d29dfe run clang-format 2015-01-26 00:19:48 -08:00
Craig Tiller 8379a06f8d Merge branch 'new_invoke_api' of github.com:google/grpc into update-api
Conflicts:
	src/cpp/client/channel.cc
	src/cpp/stream/stream_context.cc
	src/cpp/stream/stream_context.h
	src/php/ext/grpc/call.c
	test/core/end2end/tests/max_concurrent_streams.c
2015-01-20 22:43:32 -08:00
Craig Tiller ecd49345b5 Use clang-format-3.5 2015-01-18 14:36:47 -08:00
Craig Tiller c8c8bfa403 Merge branch 'new_invoke_api' of github.com:google/grpc into update
Conflicts:
	src/core/surface/call.c
	test/core/end2end/tests/thread_stress.c
	tools/run_tests/run_tests.py
2015-01-15 22:57:02 -08:00
Craig Tiller 32946d37e0 () --> (void) 2015-01-15 11:37:30 -08:00
Craig Tiller 40fc7a6632 clang-format codebase 2015-01-13 16:11:58 -08:00
Craig Tiller 375605b65f Merge github.com:google/grpc into api 2015-01-13 16:11:30 -08:00
Craig Tiller 80fa15c151 Moving prototype from Google to GitHub
I'd started some prototyping work on this change before the move to
GitHub; this change restores things.
2015-01-13 16:10:49 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
ctiller 18b49ab914 Introducing iomgr.
Move eventmanager and platform dependent endpoint functionality into a single
library called 'iomgr'.

This is primarily to prepare for a Windows port - where posix socket semantics
lead to poor quality code.

Mostly this is a code movement CL, with some small changes to help prepare the
way for porting:

- em style fd objects can only be held internally in iomgr, and own their memory
- added grpc_iomgr_create_endpoint_pair() to accomodate the common pattern of
creating a tcp endpoint from the output of socketpair - this will help keep
our tests portable
- separated em alarm interface into a separate file, as this part of event
manager is needed higher up the stack
- made the eventmanager bits a true singleton, simplifying API's across the
stack as there's no longer a reason to carry a pointer there.

Initial design document is here:
https://docs.google.com/document/d/1VmafcHvvrP5kwtQkz84R5yXF7u7fW-9Pn0bkSUQHDt8/edit?disco=AAAAARNByxg
	Change on 2014/12/09 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81716456
2014-12-09 16:20:55 -08:00
Nicolas Noble b7ebd3b8c6 Initial import. 2014-11-26 16:33:03 -08:00