Commit Graph

1239 Commits

Author SHA1 Message Date
Vijay Pai 9243c74868 Merge pull request #8365 from vjpai/fc_1dstream
Support request separation of server-side streamed RPC
2016-10-20 14:31:14 -07:00
Vijay Pai bcc59f425c Remove a useless forward declaration 2016-10-20 11:38:04 -07:00
Craig Tiller 6952b213b7 Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-10-19 13:36:59 -07:00
Sree Kuchibhotla da069a506d Rename sync_methods_ to sync_requests_ 2016-10-19 11:22:29 -07:00
Yuchen Zeng 654aa869d2 Merge remote-tracking branch 'upstream/master' into reflection_header 2016-10-18 16:29:34 -07:00
Sree Kuchibhotla 385c9b2f05 Address code review comments 2016-10-18 16:26:38 -07:00
Craig Tiller 2f1d8708e5 Header fixes 2016-10-18 16:09:26 -07:00
Sree Kuchibhotla 556aebb1e0 Merge branch 'master' into rpc_mgr 2016-10-18 14:59:24 -07:00
Vijay Pai 9fa9315d62 Merge remote-tracking branch 'upstream/master' into fc_1dstream 2016-10-18 12:15:08 -07:00
Sree Kuchibhotla e4eb51f20c reorder params in Server 2016-10-18 11:51:28 -07:00
Craig Tiller 20afa3d7c9 BufferPool --> ResourceQuota 2016-10-17 14:52:14 -07:00
yang-g b0db13141e resolve review comment 2016-10-17 13:53:18 -07:00
Yuchen Zeng 799832c32d Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-10-17 11:41:02 -07:00
Garrett Casto 7ec31718f4 Merge remote-tracking branch 'upstream/master' into cronet_cpp_api 2016-10-17 09:56:43 -07:00
Yuchen Zeng 169c985f67 Remove generated pb files 2016-10-14 15:58:09 -07:00
Yuchen Zeng de3daf5d63 More interfaces for grpc_socket_mutator 2016-10-13 17:26:26 -07:00
yang-g 4287998855 Add a test spouse for server context 2016-10-13 16:45:53 -07:00
Vijay Pai 23c5b81268 Other golden file 2016-10-13 15:41:15 -07:00
Sree Kuchibhotla c37a8a56df Fix test 2016-10-13 15:40:15 -07:00
Sree Kuchibhotla d39f40da9e Fix include files 2016-10-13 15:21:14 -07:00
Sree Kuchibhotla 8f7739bcd6 Rename GrpcRpcManager -> ThreadManager 2016-10-13 15:12:55 -07:00
Vijay Pai 96e03110db clang-format 2016-10-13 14:09:16 -07:00
Sree Kuchibhotla 96766195a6 Refactor SyncServerSettings code 2016-10-13 12:42:54 -07:00
Vijay Pai 075b18e77f Bug fix on failure condition 2016-10-13 12:05:40 -07:00
Sree Kuchibhotla e4996d6c43 Merge branch 'master' into rpc_mgr 2016-10-13 11:18:09 -07:00
Vijay Pai 61536a7371 Making split streaming testable 2016-10-13 11:04:57 -07:00
Vijay Pai 22fcbf9663 Merge branch 'master' into fc_1dstream 2016-10-13 09:39:05 -07:00
Craig Tiller c99945e44c Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-10 10:20:48 -07:00
Mark D. Roth 4bcdd73df6 Merge remote-tracking branch 'upstream/master' into fail_fast 2016-10-06 07:56:05 -07:00
Yuchen Zeng e96c05b607 Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-10-05 13:44:12 -07:00
Garrett Casto 931a26bf5b Add C++ Api 2016-10-04 09:18:29 -07:00
Sree Kuchibhotla 5f806d321a Merge branch 'master' into rpc_mgr 2016-10-03 15:23:02 -07:00
Sree Kuchibhotla 33382d0f53 Cleanup server_cc.cc 2016-10-03 15:15:49 -07:00
Craig Tiller 1bb0ce5e23 Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-10-03 12:58:02 -07:00
Sree Kuchibhotla 384eea80ba Merge remote-tracking branch 'upstream/master' into rpc_mgr 2016-10-03 09:20:52 -07:00
Vijay Pai db5b1cbc94 Add all plumbing and typedef's for controlled server-side streaming 2016-10-03 09:18:46 -07:00
Mark D. Roth 4944ee23df Merge remote-tracking branch 'upstream/master' into fail_fast 2016-09-30 10:47:24 -07:00
Stanley Cheung 146a3773da PHP Proto3: upgrade protobuf to v3.1.0 and regenerate reflection.proto 2016-09-29 17:26:50 -07:00
Craig Tiller e2180f069d Merge github.com:grpc/grpc into buffer_pools_for_realsies 2016-09-29 13:52:51 -07:00
Yang Gao d24b822d73 Merge pull request #8046 from gislan/master
Add method for creating insecure channel from FD with custom arguments using C++ API.
2016-09-29 13:39:12 -07:00
Nicolas Noble ef49a5d217 Merge pull request #7833 from sreecha/fix_channel_from_fd_api
Remove completion queue parameter from `grpc_server_add_insecure_channel_from_fd` API
2016-09-29 11:16:55 -07:00
Craig Tiller d88c461217 Merge branch 'direct-calls' into buffer_pools_for_realsies 2016-09-29 10:35:38 -07:00
Mark D. Roth a40d471110 Plumb through GRPC_INITIAL_METADATA_WAIT_FOR_READY_EXPLICITLY_SET. 2016-09-29 10:05:50 -07:00
Craig Tiller 0c80c7d12c Collecting failure status progress 2016-09-28 16:30:55 -07:00
Craig Tiller db1a5cce47 Buffer pool C++ wrapper 2016-09-28 14:22:12 -07:00
Mark D. Roth 59c9f904bf Rename GRPC_INITIAL_METADATA_IGNORE_CONNECTIVITY to
GRPC_INITIAL_METADATA_WAIT_FOR_READY.
Also add a flag to indicate whether wait_for_ready was explicitly set by
the application.
2016-09-28 13:33:21 -07:00
Mark D. Roth 5db24978b6 Merge remote-tracking branch 'upstream/master' into fail_fast 2016-09-28 13:21:31 -07:00
Sree Kuchibhotla 892dbf4d95 Make settings configurable 2016-09-27 19:42:27 -07:00
Mark D. Roth 9477724003 Change C++ API to expose wait_for_ready instead of fail_fast. 2016-09-27 13:07:00 -07:00
Sree Kuchibhotla 862acb9f3a fix shutdown crash 2016-09-26 09:48:48 -07:00
Yuchen Zeng ef394a954a Fix typo 2016-09-23 14:04:33 -07:00
Yuchen Zeng 27e96f9beb Add comments about how to re-generate reflection proto files 2016-09-22 20:56:46 -07:00
Yuchen Zeng b8a886754e Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-09-22 10:59:39 -07:00
Sree Kuchibhotla 7974232f41 Merge branch 'master' into rpc_mgr 2016-09-21 11:17:41 -07:00
Sree Kuchibhotla 4028d2c11b More fixes 2016-09-21 10:45:33 -07:00
Sree Kuchibhotla aabada97a1 One RPCMgr instance per CQ 2016-09-21 01:39:13 -07:00
Mark D. Roth abf03aed93 Merge remote-tracking branch 'upstream/master' into max_send_size_filter 2016-09-16 07:35:37 -07:00
Yang Gao 24869d558a Merge pull request #7996 from yang-g/canonical
Add a helper to get canonical code from status
2016-09-15 15:58:17 -07:00
Yuchen Zeng 66f3a4bbdf Merge remote-tracking branch 'upstream/master' into fix_gprc 2016-09-15 11:21:52 -07:00
Mark D. Roth 0e256107e8 Code review changes. 2016-09-15 09:01:05 -07:00
Craig Tiller a51f54192a Merge pull request #7559 from dgquintas/codegen_cleanse
Removed references to public APIs from codegen/
2016-09-13 19:40:43 -07:00
Yuchen Zeng 362ac1be0c Fix gprc 2016-09-13 16:01:31 -07:00
Mark D. Roth f5afcd9f65 Merge remote-tracking branch 'upstream/master' into max_send_size_filter 2016-09-13 14:57:50 -07:00
Sree Kuchibhotla 765e6542b9 Merge branch 'master' into fix_channel_from_fd_api 2016-09-09 11:33:59 -07:00
Sree Kuchibhotla d0989101f5 Merge branch 'master' into fix_channel_from_fd_api 2016-09-09 11:31:25 -07:00
yang-g d558149a5e Add a helper to get canonical code from status 2016-09-09 09:37:33 -07:00
Adam Czachorowski dbdc6e4ae6 Add method for creating insecure channel from FD with custom arguments
using C++ API.

This was already supported in C API.
2016-09-09 11:32:09 +02:00
Makarand Dharmapurikar 2b98b77225 add cacheable option to client_context 2016-09-07 14:24:15 -07:00
Mark D. Roth 3ad6188920 Fix a few lingering references to max_message_size. 2016-09-06 13:03:39 -07:00
Mark D. Roth 7bfa1a8343 Merge remote-tracking branch 'upstream/master' into max_send_size_filter 2016-09-06 10:44:32 -07:00
Mark D. Roth 6980362c4e Allow setting max send message size via C++ ServerBuilder API. 2016-09-06 08:15:36 -07:00
David Garcia Quintas d10f1775eb Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-09-03 12:42:02 +02:00
kpayson64 8d40e083f1 Merge pull request #7018 from vjpai/fc_unary
Support server-side streaming of a unary RPC
2016-09-02 09:15:14 -07:00
David Garcia Quintas e44902ecc9 Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-09-02 15:27:33 +02:00
kpayson64 cfa18475f6 Merge pull request #7918 from y-zeng/server_builder
Add ServerBuilderPlugin::UpdateChannelArguments
2016-09-01 12:53:58 -07:00
Nicolas Noble 29b75b13ac Merge pull request #7890 from yeputons/add-iwyu-pragmas-grpc-h
Add IWYU export pragmas to grpc++/grpc++.h.
2016-09-01 12:45:12 -07:00
David Garcia Quintas 410208c25c Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-09-01 18:23:55 +02:00
Mark D. Roth 79d7d99600 Merge pull request #7842 from jboeuf/security_context_extension
Adding extension points for security context.
2016-08-31 10:00:17 -07:00
Vijay Pai 5c9a3438c5 clang-format 2016-08-30 20:52:32 -07:00
Vijay Pai 84033b1f6b Stick to StatusCode::INTERNAL when there's no service
response on a StreamedUnary
2016-08-30 20:50:43 -07:00
David Garcia Quintas e3817f4fd1 Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-08-31 00:25:29 +02:00
Vijay Pai 2998daa81b Another golden file 2016-08-30 12:09:35 -07:00
Vijay Pai 77073ce99f clang-format 2016-08-30 10:26:30 -07:00
Vijay Pai de2aec8106 Merge branch 'master' into fc_unary
Resolve conflicts in ServerReaderWriterInterface
Remove file server_streamed_unary.h and merge with sync_stream.h
2016-08-30 10:20:20 -07:00
David Garcia Quintas 621e2b1a49 Merge with newly added/modified files 2016-08-30 09:27:19 -07:00
kpayson64 d76ea83728 Merge pull request #7798 from y-zeng/ServerReaderWriterInterface
Add ServerReaderWriterInterface
2016-08-30 08:34:19 -07:00
David Garcia Quintas f3581bf90a Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-08-30 04:45:50 -07:00
Yuchen Zeng 11d3c8f3d4 Add ServerBuilderPlugin::UpdateChannelArguments 2016-08-29 18:19:03 -07:00
Vijay Pai d4d5f4cd53 clang-format 2016-08-29 16:59:21 -07:00
Vijay Pai a9c0d7f88b Change names to StreamedUnary, ServerUnaryStreamer, etc. Use a templated method handler since most code shared between the new StreamedUnary and the existing BidiStreaming. Eliminate the separate enum case for streamed unary. Return a status failure if a StreamedUnary method handler doesn't actually do a write (since that is
violating the appearance of unary-ness)
2016-08-29 16:42:04 -07:00
Egor Suvorov 93901a7a86 Add clarifying comment about IWYU in grpc++.h 2016-08-26 16:48:38 -04:00
Egor Suvorov 650ae16bf7 Add IWYU export pragmas to grpc++/grpc++.h.
IWYU is a C++ tool which ensures that end users explicitly #include
every header they need. Without pragmas IWYU have no way of distinguishing
between 'implementation-specific' headers and headers which are shortcuts
for groups of other headers, like grpc++.h.
2016-08-26 16:26:23 -04:00
Julien Boeuf 2b2b345841 Addressing feedback. 2016-08-25 21:22:55 -07:00
Vijay Pai cdc253535b Remove FC_UNARY enum and treat it more like a special case of BIDI_STREAMING
in all cases
2016-08-25 15:33:02 -07:00
Vijay Pai ac4113bef1 Merge branch 'master' into fc_unary 2016-08-25 14:49:18 -07:00
Takuto Ikuta c0080b7c92 remove docstring for not existing argument 2016-08-25 13:31:51 +09:00
Takuto Ikuta bb04734eec Fix a typo 2016-08-25 13:31:51 +09:00
Julien Boeuf 6b93d46bb8 Adding extension points for security context. 2016-08-23 10:04:03 -07:00
Sree Kuchibhotla 509ee4c111 Remove the API to return the underlying completion queue. This API is no
longer needed
2016-08-22 17:48:41 -07:00
Sree Kuchibhotla 3ea9e247e0 some refactoring 2016-08-22 14:15:43 -07:00
Sree Kuchibhotla 86edf01593 Merge 2016-08-22 10:01:35 -07:00
Yuchen Zeng 59e835d431 Add comments 2016-08-19 15:23:23 -07:00
Yuchen Zeng e0705e2dc2 Add ServerReaderWriterInterface 2016-08-19 15:13:43 -07:00
Mark D. Roth 2665bdd6d2 Reduce allocations associated with src/cpp/util/byte_buffer.cc. 2016-08-18 08:02:24 -07:00
kpayson64 b80d9c9626 Merge pull request #7594 from chedeti/grpc-thrift-v2
grpc thrift integration
2016-08-17 16:59:20 -07:00
Nicolas "Pixel" Noble 7f074e0e20 Merge branch 'v1.0.x' into manual-upmerge 2016-08-11 21:00:08 +02:00
chedeti a7ee93864a remove const in Deserialize 2016-08-04 14:42:35 -07:00
Vijay Pai 326d939873 Another golden file to fix 2016-08-04 14:10:54 -07:00
chedeti 76db7f9a7c use boost::make_shared 2016-08-04 11:56:54 -07:00
Vijay Pai 5d94118d0d clang-format 2016-08-04 11:48:47 -07:00
Vijay Pai 581097fe0d Make FCUnary and ServerReaderWriter derived classes of a new
ServerReaderWriterInterface so that some functions can be made
to accept either.
2016-08-04 10:50:51 -07:00
Vijay Pai 666681612e Merge branch 'master' into fc_unary 2016-08-04 09:44:51 -07:00
chedeti 82afcaa009 rename class variables to snake_case 2016-08-03 16:38:05 -07:00
Jorge Canizales 3df9bdf880 Update generated files with new protobuf version
Also make the script fetch protoc from the usual place.
2016-08-03 10:48:23 -07:00
David Garcia Quintas 1f32ae4e84 Merge branch 'master' of github.com:grpc/grpc into codegen_cleanse 2016-08-02 10:24:44 -07:00
chedeti a17039aaa4 refine code and add README 2016-08-01 17:32:06 -07:00
David Garcia Quintas ffd207fe4c fixed include guard script and faulty .h 2016-08-01 16:20:52 -07:00
chedeti bc618eed71 thrift serializer 2016-07-31 15:35:51 -07:00
Sree Kuchibhotla e3a282e90d Merge branch 'master' into rpc_mgr 2016-07-29 09:54:24 -07:00
Nicolas Noble 5a36325896 Merge pull request #7502 from dgquintas/cpp_compression_level
C++ Compression Level set properly
2016-07-28 18:32:25 -07:00
Nicolas Noble e51b9d2e39 Merge pull request #7502 from dgquintas/cpp_compression_level
C++ Compression Level set properly
2016-07-28 18:28:17 -07:00
David Garcia Quintas 61887dcf46 scrubbed codegen/sync.h 2016-07-27 23:17:34 -07:00
David Garcia Quintas e8fd66b71d removed codegen/slice_buffer.h and scrubbed codegen/slice.h 2016-07-27 22:05:37 -07:00
David Garcia Quintas c79b0650d2 removed codegen/log.h 2016-07-27 21:11:58 -07:00
David Garcia Quintas 1399e466b0 removed codegen/time.h 2016-07-27 20:31:55 -07:00
David Garcia Quintas 3b31fdf77b removed codegen/byte_buffer.h 2016-07-27 18:17:12 -07:00
David Garcia Quintas 6b11462da1 removed codegen/alloc.h 2016-07-27 14:49:53 -07:00
Vijay Pai 2d04dd827c Change API for next message size to allow a bool return value for failure
cases.
2016-07-27 11:35:56 -07:00
kpayson64 b5fa72c89e Merge pull request #7451 from y-zeng/seperate_generated_files
Separate generated pb files from the server reflection build target, use grpc::protobuf instead of google::protobuf
2016-07-25 14:32:51 -07:00
Sree Kuchibhotla 6d977638f7 Merge branch 'master' into rpc_mgr 2016-07-22 11:54:01 -07:00
David Garcia Quintas 440558a7ec C++ Compression Level set properly 2016-07-21 19:31:38 -07:00
David Garcia Quintas f77b9bf2fe Removed unused version of async_stream.h 2016-07-21 19:24:51 -07:00
Yuchen Zeng 2edf5e904b Merge remote-tracking branch 'upstream/master' into seperate_generated_files 2016-07-21 16:15:12 -07:00
kpayson64 b8e26c0217 Merge pull request #7486 from dgquintas/alive_typo
fixed typo
2016-07-21 15:15:47 -07:00
Vijay Pai 0a1c598986 Merge branch 'master' into fc_unary 2016-07-21 11:34:02 -07:00
Nicolas Noble 98f47f6169 Merge pull request #7469 from yang-g/proto_lite
Add a macro to support protobuf lite
2016-07-21 11:13:53 -07:00
Sree Kuchibhotla 56891a7507 Merge branch 'master' into rpc_mgr 2016-07-21 11:02:01 -07:00
David Garcia Quintas b91cddb2fa fixed typo 2016-07-20 17:40:01 -07:00
Yuchen Zeng 543c5886ee Merge remote-tracking branch 'upstream/master' into seperate_generated_files 2016-07-19 19:15:55 -07:00
kpayson64 7c519b9243 Merge pull request #7444 from y-zeng/fix_typo
Fix typos in config_protobuf.h
2016-07-19 17:34:59 -07:00
yang-g e6c04aa612 Add a macro to support protobuf lite 2016-07-19 14:46:50 -07:00
Sree Kuchibhotla bb5519f5a5 More changes 2016-07-19 11:00:39 -07:00
Yuchen Zeng 1318479011 Separate generated file and protobuf dependency 2016-07-18 13:07:42 -07:00
Yuchen Zeng 3046557a02 fix typo 2016-07-18 12:08:17 -07:00
Yuchen Zeng 24987dbf77 fix typo 2016-07-18 10:35:44 -07:00
yang-g 807387641f prevent spurious wake up and unstarted/already shutdown server 2016-07-14 22:59:39 -07:00
Sree Kuchibhotla 69b74784fe Reduce the number of unnecessary allocations 2016-07-14 21:24:07 -07:00
kpayson64 27a02b5d9d Merge pull request #7319 from yang-g/wait_async
Make Server::Wait work for async only server.
2016-07-14 18:26:25 -07:00
yang-g 6ec11f2acd prevent spurious wake up and unstarted/already shutdown server 2016-07-14 14:53:35 -07:00
yang-g 05573f1692 Make Server::Wait work for async only server. 2016-07-13 22:23:19 -07:00
yang-g 3e63b4ee7e Merge remote-tracking branch 'upstream/master' into slice 2016-07-12 08:36:26 -07:00
yang-g e89dc6ceb6 Make Server::Wait work for async only server. 2016-07-11 15:48:01 -07:00
David Garcia Quintas f2e20c2d8c Merge branch 'master' of github.com:grpc/grpc into bb_reader_error 2016-07-06 15:34:42 -07:00
David Garcia Quintas 6721d4f0f1 Return success status of grpc_byte_buffer_reader 2016-06-30 17:30:08 -07:00
David Garcia Quintas 314d3350d9 removed unused version of status_code_enum.h 2016-06-30 09:51:02 -07:00
Vijay Pai 577d1696e8 Fix generated reflection files 2016-06-27 14:48:57 -07:00
yang-g a324c4fea6 Add API to get c slice from c++ Slice. 2016-06-24 11:59:35 -07:00
Jan Tattermusch 3901ceed6a Merge pull request #6947 from vjpai/async_stream_doc
Doc Fixit: Ordering and thread-safety for C++ streaming (sync/async) APIs
2016-06-24 10:16:30 -07:00
vjpai c0c38b1f19 Make the FCUnary class actually work and test it 2016-06-23 17:27:11 -07:00
vjpai fcb98a578c Add NextMessageSize method to all readable streams as an upper-bound
on the actual message size.
Rename Size of FCUnary to NextMessageSize for consistency
2016-06-23 13:18:50 -07:00
vjpai a12276932d Add some const 2016-06-23 13:18:19 -07:00
vjpai 7142a91fc9 Fix up service types and method handlers so that FC unary can work properly. 2016-06-23 10:16:00 -07:00
Bill Clarke c072c927a8 Const correctness for ClientContext and ServerContext getters 2016-06-22 17:07:00 -07:00
vjpai ba6597f297 Actually generate code for FC Unary and make it work 2016-06-22 15:49:48 -07:00
vjpai 726561ed06 Initial definition of flow-controlled unary type along with code generation for this type 2016-06-22 11:14:24 -07:00
vjpai bd28936c86 Properly handle reviewer comment re concurrent Read 2016-06-21 18:03:37 -07:00
vjpai ef01edf5b7 Fix review comments 2016-06-21 16:42:08 -07:00
vjpai 1d9b1e9640 Merge branch 'master' into async_stream_doc 2016-06-21 16:32:13 -07:00
vjpai 7b4dc532dd Stop using global namespace on a template param 2016-06-17 15:55:00 -07:00
vjpai b9df2760ed Add proper documentation of ordering and thread-safety for
streaming (sync and async) APIs
2016-06-17 00:27:00 -07:00
Vijay Pai 90460fadf6 Digraph 2016-06-16 00:28:57 -07:00
Vijay Pai b9e927afcc Merge branch 'master' into wheezy 2016-06-15 22:57:21 -07:00
Vijay Pai 20bf126da6 clang-format 2016-06-15 22:21:48 -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
Vijay Pai 06ea541ed9 Provide nullptr->std::function cast 2016-06-15 10:57:50 -07:00
David Garcia Quintas 058c9de8b2 Added to server's shutdown docstrings 2016-06-13 19:04:43 -07:00
Jan Tattermusch 136307756c Merge pull request #6438 from y-zeng/reflection_separate_lib
Proto server reflection
2016-06-13 14:16:06 -07:00
vjpai 97da6473b4 Manual clang-format 2016-06-13 09:56:26 -07:00
Vijay Pai 15855f3e7f Switch server builder plugin API to something that will work with gcc4.4 2016-06-10 12:25:32 -07:00
Vijay Pai ce350a5925 override->GRPC_OVERRIDE
Remove range-based fors
2016-06-09 17:22:35 -07:00
Jan Tattermusch 1bc2976a0f Merge pull request #6481 from dgquintas/compression_md_level_bis
Allow servers to select compression level via initial MD & overall compression cleanup
2016-06-08 19:17:20 -07:00
Jan Tattermusch b81f172206 Merge pull request #6610 from xyzzyz/external_fd_fresh
Add support for communication using existing FD (for client and server)
2016-06-08 19:16:40 -07:00
Jan Tattermusch b17e25ce94 Merge pull request #6649 from dgquintas/core_codegen_be_public
moved core_codegen from src/cpp/... to include/grpc++/...
2016-06-08 13:16:55 -07:00
Jan Tattermusch 026dfe60a5 Merge pull request #6820 from mdsteele/server-async
Add interfaces for ServerAsyncReader/Writers
2016-06-08 13:11:30 -07:00
Matthew D. Steele 080749e8ba Add interfaces for ServerAsyncReader/Writers 2016-06-08 10:37:23 -04:00
David Garcia Quintas 533add5a87 Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-06-07 21:21:27 -07:00
David Garcia Quintas cf41d19a9e clang-format 2016-06-07 21:05:43 -07:00
David Garcia Quintas dd385b6a19 Merge branch 'master' of github.com:grpc/grpc into core_codegen_be_public 2016-06-07 18:51:36 -07:00
David Garcia Quintas 30fb536053 PR comments (offline). 2016-06-07 16:24:17 -07:00
Adam Michalik 4ad746e4e0 clang-format, fix headers, windows fixes 2016-06-07 15:09:19 -07:00
Adam Michalik b97e2d145e Add C++ support for using external FD 2016-06-07 15:09:19 -07:00
Yuchen Zeng d23710787b Merge remote-tracking branch 'upstream/master' into reflection_separate_lib 2016-06-07 15:00:52 -07:00
Jan Tattermusch 570408fd4c Merge pull request #6741 from yang-g/its_ok_to_have_no_read_on_cancelled_call
Let Next set ok=true when receiving error status
2016-06-07 10:54:02 -07:00
Yuchen Zeng 7ae31a8898 Add more comments, fix format issues 2016-06-06 14:35:51 -07:00
Yuchen Zeng 0601df3a04 Move reflection src/hdr to src/cpp/ext include/grpc++/ext 2016-06-06 13:08:06 -07:00
yang-g 17487f9a22 Make grpc++ independent of protobuf 2016-06-03 15:21:15 -07:00
David Garcia Quintas 55c08f81cf Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-06-03 14:18:01 -07:00
Yuchen Zeng 3623dc5cdd Move protobuf dependencies to config_protobuf.h 2016-06-03 13:41:46 -07:00
yang-g 15759f610e Let Next set ok=true when receiving error status 2016-06-01 11:21:27 -07:00
David Garcia Quintas a20a2ad41b moved core_codegen from src/cpp/... to include/grpc++/... 2016-05-19 11:02:01 -07:00
Craig Tiller 9766f4f424 Merge github.com:grpc/grpc into test_affine 2016-05-18 16:55:35 -07:00
David Garcia Quintas 697a41f682 fixes to grpc++/impl/codegen/call.h 2016-05-18 15:26:42 -07:00
David Garcia Quintas 8f7365021f Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-05-18 10:29:57 -07:00
Jan Tattermusch 057a2f8f7c Merge pull request #6445 from yang-g/unique_ptr_reset
Add an explicit base class pointer to avoid potential breakage.
2016-05-18 07:30:06 -07:00
David Garcia Quintas 2d02456e78 got rid of grpc_compression_options 2016-05-17 23:24:39 -07:00
Craig Tiller 1102faffca Merge branch 'connect_first' into test_affine 2016-05-14 13:27:02 -07:00
Craig Tiller f7a670fe6d Merge branch 'server_channel_affinity' of github.com:sreecha/grpc into affine 2016-05-14 13:05:41 -07:00
David Garcia Quintas 0fde7131aa Fixed usage of anon namespace inside .h 2016-05-13 15:13:51 -07:00
Craig Tiller 52237e3a96 clang-format 2016-05-13 14:37:25 -07:00
Craig Tiller 63d24f1c7d Make qps workers connect before even warmup stage begins 2016-05-13 14:36:09 -07:00
David Garcia Quintas d6fb831ce5 Updated codegen/call.h 2016-05-13 11:06:05 -07:00
David Garcia Quintas 48a5ddd00c Merge branch 'master' of github.com:grpc/grpc into compression_md_level_bis 2016-05-12 17:54:58 -07:00
yang-g 73621357ab Merge remote-tracking branch 'upstream/master' into unique_ptr_reset 2016-05-12 14:01:13 -07:00
Yuchen Zeng f86bbdefc9 Merge pull request #6373 from y-zeng/server-builder-plugin
Server builder plugin
2016-05-11 17:26:29 -07:00
Jan Tattermusch b85e9d43f0 fix formatting 2016-05-11 10:21:45 -07:00
yang-g b6f853d065 Add comment 2016-05-10 16:47:02 -07:00
Sree Kuchibhotla 8dbe2cb071 Merge branch 'master' into server_channel_affinity 2016-05-10 10:33:25 -07:00
David Garcia Quintas a301eaade8 Allow servers to select compression level via initial MD.
Setting the newly added compression_level field of
grpc_op::send_initial_metadata by a server now has the effect of
applying that compression level for the subsequent call messages leaving
the server. The ultimate meaning of the level depends on the client's
supported compression algorithms.
2016-05-09 14:30:41 -07:00
Yuchen Zeng 26a1785cfc Resolve conflicts 2016-05-06 15:50:15 -07:00
Yuchen Zeng 7d099a5c90 Fix naming and comment problems 2016-05-06 13:21:36 -07:00
yang-g 7099d6fed6 Add an explicit base class pointer to avoid potential breakage. 2016-05-05 10:53:50 -07:00
Jan Tattermusch bc2afb065a Merge pull request #6323 from dgquintas/codegen_remove_proto
Moved protos out of core_codegen interface
2016-05-04 19:09:29 -07:00
Yuchen Zeng 3b8f3354de Add plugins at the time of static initialization 2016-05-03 12:18:13 -07:00
Sree Kuchibhotla b69251c2f6 Merge branch 'master' into server_channel_affinity 2016-05-03 09:33:13 -07:00
Craig Tiller 4ee1a62723 Stress test fixes
- properly fail a Read() on a stream if we fail to parse a protobuf
- fix an ordering problem with the chttp2 transport global lock, whereby
  a sequence of two operations could be swapped - this resulted in
  slices being returned to the upper layers in the wrong order,
  corrupting data
2016-04-29 16:47:27 -07:00
Yuchen Zeng c049035bed Add GRPC_ prefix for macros 2016-04-29 14:05:08 -07:00
Yuchen Zeng a42ec21341 Server builder plugin 2016-04-29 13:05:36 -07:00
David Garcia Quintas 1b2db6333d Moved protos out of core_codegen interface 2016-04-27 15:09:11 -07:00
Sree Kuchibhotla 30499760db Merge branch 'master' into server_channel_affinity 2016-04-26 11:27:14 -07:00
Craig Tiller 7beea147e5 Merge github.com:grpc/grpc into strong-includes 2016-04-21 17:07:36 -07:00
Sree Kuchibhotla 01907123f6 generate_projects.sh and fix copyright year 2016-04-21 15:09:13 -07:00
Sree Kuchibhotla 1f5e262589 Add the option of adding a non-listening server completion queue. This makes writing certain test cases (like hybrid_end2end tests) easier 2016-04-21 12:28:15 -07:00
Deepak Lukose dba4c5fd01 Add various options to verify ssl/tls client cert including letting the
application handle the authentication.
2016-04-19 15:02:06 -07:00
Craig Tiller 788a25365d Fix dependencies 2016-04-12 17:13:43 -07:00
Craig Tiller 666a362a66 clang-fmt 2016-04-12 13:46:30 -07:00
Craig Tiller 3ab2fe0094 Rollup of changes from the latest import 2016-04-11 20:11:18 -07:00
Craig Tiller 08eb0d6752 clang-format 2016-04-01 12:59:17 -07:00
Craig Tiller c954f59c2e Fix missing arg 2016-04-01 12:35:32 -07:00
Craig Tiller 399b3c42de Fix client_crash_test, implement idempotency, fail_fast for C++ 2016-04-01 12:24:18 -07:00
Craig Tiller 6169d5f7b0 Update copyrights 2016-03-31 07:46:18 -07:00
Craig Tiller f40df23eeb Auto-changes 2016-03-25 13:38:14 -07:00
yang-g f64befd27f Make a copy of ByteBuffer when writing 2016-03-21 14:04:10 -07:00
Jan Tattermusch ddd4d7f10f Merge pull request #5494 from dgquintas/guard_check
New #include guard sanity check + fixes to current guards
2016-03-20 15:57:00 -07:00
David Garcia Quintas 146070db8d fixed multiple initialization of globals 2016-03-18 15:53:28 -07:00
David Garcia Quintas c14f1cbe9a new fixed guards 2016-03-18 10:14:27 -07:00
David Garcia Quintas 185768b702 Merge branch 'master' of github.com:grpc/grpc into guard_check 2016-03-17 22:42:39 -07:00
David Garcia Quintas cd21266b5f Merge branch 'master' of github.com:grpc/grpc into codegen_lib 2016-03-15 17:10:45 -07:00
David Garcia Quintas 3598d4457d Fixed include guards 2016-03-15 14:53:05 -07:00
David Garcia Quintas 9eef377865 clang-format 2016-03-09 11:31:02 -08:00
David Garcia Quintas 60ee8dd2fc docstrings 2016-03-08 17:21:42 -08:00
David Garcia Quintas b942640497 clang-format 2016-03-08 16:25:11 -08:00
David Garcia Quintas be25493398 codegen interface usage of gpr_inf_future 2016-03-08 16:24:35 -08:00
David Garcia Quintas ef6848fe5b reverted gpr_ time changes 2016-03-08 16:05:30 -08:00
David Garcia Quintas 723af53419 moved some files around 2016-03-08 14:26:50 -08:00
David Garcia Quintas 8c3d9943f6 compiles! 2016-03-08 00:07:14 -08:00
David Garcia Quintas e1ce31eda3 wip. cq refactored 2016-03-07 18:19:12 -08:00
David Garcia Quintas 6848c4e145 wip. prior to cq refactoring 2016-03-07 17:10:57 -08:00
Sree Kuchibhotla b0d1567e8e Revert "Revert "Properly integrate async API with server-side cancellations."" 2016-03-07 10:51:02 -08:00
David Garcia Quintas b07938fa22 added missing initializer for global proto_serializer holder to codegen lib 2016-03-06 20:07:30 -08:00
Sree Kuchibhotla edd96e4926 Revert "Properly integrate async API with server-side cancellations." 2016-03-04 14:32:50 -05:00
Vijay Pai 13ee2f2df3 Properly integrate async API with server-side cancellations.
There is a comment above IsCancelled that says when it is ok to use this.
2016-03-03 13:57:32 -08:00
David Garcia Quintas 7f7181ffc5 fix comments 2016-03-02 20:42:16 -08:00
David Garcia Quintas c4f4f7ede9 clang-format 2016-03-02 20:37:24 -08:00
David Garcia Quintas f588aeb1e2 introduced workaround for proto_utils 2016-03-02 20:33:28 -08:00
David Garcia Quintas 45add8a445 Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-22 23:15:28 -08:00
Craig Tiller c8d34d50a2 Merge pull request #5287 from yang-g/global_callback_magic
Add a way to override channel arguments for server creation
2016-02-22 22:05:32 -08:00
David Garcia Quintas 0160873273 PR comments addressed 2016-02-22 17:49:45 -08:00
David Garcia Quintas ef02fb9d6f Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-22 17:41:41 -08:00
David Garcia Quintas bcd78fe845 Added missing virtual dtor 2016-02-19 15:39:16 -08:00
David Garcia Quintas 4105505b33 Fixed refactoring of grpc_arg pointer vtable 2016-02-17 18:23:15 -08:00
David Garcia Quintas 10e269897f Merge branch 'master' of github.com:grpc/grpc into alarm_cpp 2016-02-17 17:43:42 -08:00
David Garcia Quintas 5e07d76a86 Made Alarm's constructor a template for deadline 2016-02-17 17:10:41 -08:00
Sree Kuchibhotla ac94c430d2 Merge pull request #5186 from yang-g/inherit_from_grpc_library
Provide explicit API for user to set user agent string prefix
2016-02-17 15:51:57 -08:00
yang-g eb62c94338 Add a way to override channel arguments for server creation 2016-02-17 15:37:25 -08:00
vjpai 50d7e3c4eb I merged this without checking the copyright. My mistake... 2016-02-12 23:09:04 -08:00
Craig Tiller d4f2604b53 Small tweak to make some customer code compile 2016-02-12 15:00:22 -08:00
yang-g a3c968d9c2 Merge remote-tracking branch 'upstream/master' into inherit_from_grpc_library 2016-02-12 14:54:16 -08:00
David G. Quintas 3f19f42771 Merge pull request #5052 from ctiller/compress
Fix race condition in transport API
2016-02-11 18:16:11 -08:00
Craig Tiller 1362c24108 Merge pull request #5193 from vjpai/alarm_mods
Make C++ alarm class usable and testable
2016-02-11 12:36:07 -08:00
Craig Tiller c0473cc823 Merge github.com:grpc/grpc into compress 2016-02-11 08:51:16 -08:00
Vijay Pai 810a13e2d3 Remove a small allocation, at the cost of a little uglier header file.
This commit may or may not be a great tradeoff.
2016-02-11 03:30:10 -08:00
David Garcia Quintas 26a9848416 Removed outdated mention of AsynchronousService 2016-02-11 00:45:00 -08:00
vjpai 04e992a750 Make C++ alarm class usable and testable - there were some build issues and
it was not actually even included in the library or the test suite.
2016-02-10 16:58:38 -08:00
yang-g 1945ae4285 Fix copyright 2016-02-10 12:48:32 -08:00
yang-g d59ad7ef39 Provide explicit API for user to set user agent string prefix 2016-02-10 12:42:53 -08:00
David Garcia Quintas ab5da5ef7a Added missing codegen includes 2016-02-09 20:31:37 -08:00
Craig Tiller 64914ae6b5 Merge pull request #5128 from yang-g/inherit_from_grpc_library
Add missing base class
2016-02-08 15:14:29 -08:00
Vijay Pai 30bf3ea4b9 clang-format 2016-02-08 13:21:07 -08:00
yang-g 46d22d5fa7 add missing base class 2016-02-08 12:27:10 -08:00
Vijay Pai c593ca0171 reset the shared_ptr 2016-02-08 11:38:42 -08:00
Vijay Pai bedf57fe8c Ref the collection only when it will be used (and later finalized) 2016-02-05 16:45:54 -08:00
Vijay Pai 2b5638668e Drop the ref 2016-02-05 15:11:36 -08:00
Vijay Pai 5506bea349 Undo much of the previous commits so that only CallOpSet groups
with a Sneaky member are in a collection.
2016-02-05 14:23:24 -08:00
Vijay Pai 7e3f9b0178 Forgot to include these edits in the last commit 2016-02-05 13:43:17 -08:00
Vijay Pai 38004a8e39 Wrap groups of related CallOpSet's into a ref-counted structure
whenever appropriate so as to avoid any unintentional free-before-use
problems.

Potential performance issue: this triggers an additional allocation
for each Async call initiation, along with the cost of ref-counting
shared_ptr . But this is worth it for the additional safety provided
here without any change to the exposed C++ API.
2016-02-05 13:40:22 -08:00
Craig Tiller 97cb41cfaf Merge github.com:grpc/grpc into compress 2016-02-05 10:44:56 -08:00
Craig Tiller a44cbfc11c Fix race condition in transport API
Specifically:

Receiving trailing and initial metadata had to be published in
lock-step.
=> If we wanted trailing metadata, we might not get initial metadata processed
   until messages arrived.
=> Compression code had no idea what codec to use.

To fix it, publish initial metadata as soon as it's ready (this is a
transport API change).

Requires changes to grpc_call to ensure ordering in processing initial
metadata and messages (one may be delayed).

Exposed at least some bugs in C++ where we never read initial metadata.

I expect at least one more similar bug.
2016-02-03 16:02:49 -08:00
Sree Kuchibhotla 3075c81028 Update comment on TryCancel() API 2016-01-29 18:25:22 -08:00
Sree Kuchibhotla f25c6ba229 Comments and format 2016-01-28 18:04:03 -08:00
Sree Kuchibhotla 7fa9d6f4c8 TryCancel() on ServerContext() 2016-01-28 17:32:48 -08:00
David Garcia Quintas d79ef3af71 Fixed wrong usage of global var 2016-01-28 00:21:27 -08:00
David Garcia Quintas 6523391782 sanity fixes 2016-01-27 20:07:36 -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
David Garcia Quintas 5a9462339d copyrights 2016-01-27 19:22:14 -08:00
David Garcia Quintas 6bd7b97dc6 DONE!!1one 2016-01-27 19:21:12 -08:00
David Garcia Quintas e1300deb87 After GrpcLibrary refactoring. Compiles and passes. WIP still 2016-01-27 18:41:26 -08:00
Craig Tiller 17b5047e46 Fix copyrights 2016-01-27 08:53:35 -08:00
Craig Tiller 64616496e2 Alternative ownership for global callbacks 2016-01-26 14:16:20 -08:00
David Garcia Quintas 6a48405ed0 pre sync_stream.cc creation. Does not compile 2016-01-25 19:12:37 -08:00
David Garcia Quintas b523c732d1 async_stream.h done. Compiles 2016-01-25 18:22:28 -08:00
David Garcia Quintas 3452ae27c1 copyrights 2016-01-25 17:34:49 -08:00
David Garcia Quintas 2425bbbc55 Further work. Compiles. WIP 2016-01-25 17:32:48 -08:00
David Garcia Quintas 28991142fa Improved a couple error messages 2016-01-22 13:56:45 -08:00
David Garcia Quintas ddcb53a9de made codegen targets in build.yaml 2016-01-21 17:48:34 -08:00
David Garcia Quintas 1d9b8079cb clang-format 2016-01-21 10:08:22 -08:00
David Garcia Quintas a43aadd7e1 fixed copyrights 2016-01-21 10:01:28 -08:00
David Garcia Quintas 08a0a3306e Made "codedgen" directories closed over #includes 2016-01-21 01:04:36 -08:00
David Garcia Quintas f3ddb7c55a clang-format 2016-01-20 16:02:22 -08:00
David Garcia Quintas 6190854157 updated copyrights 2016-01-20 11:21:27 -08:00
David Garcia Quintas a701ed7759 Merge branch 'proto_interfaces' into yang-g-sync_async_mix 2016-01-19 18:44:47 -08:00
David Garcia Quintas 1f4e72c19c override -> GRPC_OVERRIDE 2016-01-19 14:45:32 -08:00
David Garcia Quintas 1aeabd7194 regenerated projects 2016-01-19 11:23:37 -08:00
David Garcia Quintas a8b866b0b7 Merge branch 'master' of github.com:grpc/grpc into proto_interfaces 2016-01-19 10:33:21 -08:00
David Garcia Quintas 44f3249018 Introduced ServerInterface 2016-01-15 16:49:16 -08:00
Bogdan Drutu 4bda41fa50 Merge remote-tracking branch 'upstream/master' 2016-01-15 15:26:38 -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 1ac6f4594e warn user when they forget register generic service 2016-01-15 11:46:40 -08:00
yang-g f48766d347 fix copyright 2016-01-15 11:26:31 -08:00
yang-g 269b8be406 add generic test 2016-01-15 10:46:26 -08:00
yang-g 0bbc87f599 Add generic support 2016-01-15 09:22:50 -08:00
yang-g 8053d2feb6 Merge remote-tracking branch 'upstream/master' into sync_async_mix 2016-01-15 08:53:15 -08:00
David Garcia Quintas 2bf574f814 Added back trailing newlines 2016-01-14 15:55:03 -08:00
Bogdan Drutu ee142ab634 Merge remote-tracking branch 'upstream/master' 2016-01-14 15:33:30 -08:00
David Garcia Quintas 752c36a588 Merge branch 'master' of github.com:grpc/grpc into proto_interfaces 2016-01-14 13:57:55 -08:00
Craig Tiller 21c0ebf6d4 Merge pull request #4653 from murgatroid99/release-0_12_master_merge
Release 0 12 master merge
2016-01-14 12:47:37 -08:00
yang-g b9a1377fab Merge remote-tracking branch 'upstream/master' into sync_async_mix 2016-01-14 09:50:48 -08:00
Craig Tiller 754bd26e28 clang-format code 2016-01-14 06:10:15 -08:00
murgatroid99 eeb02ba77a Update copyrights again 2016-01-13 20:43:33 -08:00
David Garcia Quintas e50c6c2f5e WIP. Added ChannelInterface 2016-01-13 16:02:00 -08:00
yang-g d42262e22e merge with head 2016-01-13 15:32:51 -08:00
yang-g bef0d8744e Support sync/async methods in the same service 2016-01-13 15:27:33 -08:00
Vijay Pai 947ab265bd Merge branch 'master' into bbuf 2016-01-13 12:25:33 -08:00
murgatroid99 b70206fe52 Merge branch 'master' into release-0_12_master_merge 2016-01-13 11:42:18 -08:00
yang-g dc548ed65d merge with head 2016-01-13 10:42:19 -08:00
Bogdan Drutu 33a1ad002a Fix the typo 2016-01-12 15:56:21 -08:00
Bogdan Drutu 899e5a82f6 Add a virtual destructor for the ClientContext::GlobalCallbacks. 2016-01-12 15:54:32 -08:00
murgatroid99 3466c4b55d Updated copyrights 2016-01-12 10:26:04 -08:00
Ian Coolidge 8e7a4b66e8 Fix R/W template argument order in prototypes
In some cases, the prototype argument order was different
than the declaration order.

Based on a patch from Sam Leffler.
2016-01-11 14:19:58 -08:00
Vijay Pai b30bc2aad6 Remove dead code and a thus unneeded change to C++ bbuf 2016-01-11 10:11:50 -08:00
Vijay Pai 6045681003 Merge branch 'master' into bbuf 2016-01-11 10:08:26 -08:00
murgatroid99 8b791a4a7f Merged from master and resolved merge conflicts 2016-01-08 12:33:22 -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
Vijay Pai 93beeb8895 Fix one use of grpc instead of gpr 2016-01-07 12:12:40 -08:00
vjpai de332dfcac Refactor server side to support generic tests. 2016-01-07 10:20:46 -08:00
jboeuf bbb94bd6fc Merge pull request #4562 from ctiller/ints
Switch to using C99 types for fixed size integers
2016-01-06 12:50:53 -08:00
Craig Tiller 0ede550acb Update async write documentation 2016-01-06 07:32:10 -08:00
Craig Tiller 896ef305bc Add copyright checks to sanity; make them verify copyright year is valid 2016-01-04 16:25:31 -08:00
Craig Tiller 6a56221f28 Merge github.com:grpc/grpc into ints 2016-01-04 16:08:47 -08:00
Craig Tiller de3da74866 Add copyright checks to sanity; make them verify copyright year is valid 2016-01-04 14:41:25 -08:00
Vijay Pai 18c0477528 Got rid of all compilation problems, now need to test 2016-01-04 09:52:10 -08:00
sammcveety cbf2dfed88 Update link in credentials.h to point to grpc.io 2016-01-03 19:36:23 -07:00
Julien Boeuf 77bc16e38e Fixing cpp auth doc pointers. 2015-12-28 12:39:44 -08:00
Craig Tiller 7536af02cf Eliminate gpr_ int types - and insist on C99 variants instead 2015-12-22 13:49:30 -08:00
vjpai be75ffd028 Merge branch 'master' into bbuf 2015-12-22 10:40:16 -08:00
Bogdan Drutu 42ab3fa5fa Add a destructor callback as well 2015-12-11 19:48:19 -08:00
Bogdan Drutu 38d2ad6e96 Add a hook for the default constructor of ClientContext. 2015-12-11 19:29:07 -08:00
Hongyu Chen aa28ccc922 Merge remote-tracking branch 'upstream/master' 2015-12-11 11:08:35 -08:00
Hongyu Chen 0504a4443f More reverting 2015-12-10 16:33:56 -08:00
Hongyu Chen 134cac2004 Address comments: revert all changes except adding two new metadata keys
"census" and "census-bin"
2015-12-10 16:19:24 -08:00
Jan Tattermusch 5dc93c363b include climits 2015-12-07 17:59:35 -08:00
Jan Tattermusch 5b155e5674 more win x64 fixes 2015-12-07 17:59:32 -08:00
Craig Tiller 35c1d3c462 Merge pull request #4207 from yang-g/server_builder_options
Server builder options
2015-12-03 11:39:44 -08:00
Hongyu Chen 1f96048187 Census tags propagation. 2015-12-02 22:24:33 -08:00
jboeuf 6f9b171842 Merge pull request #4204 from ctiller/emergency-cheese-and-crackers
Global hook for doing something in response to a synchronous server call
2015-12-02 20:55:37 -08:00
yang-g 92f4a155d8 add doxygen comment 2015-12-02 14:24:45 -08:00
Craig Tiller 8352b9e997 Review feedback 2015-12-02 11:43:40 -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
vjpai 594f0c43e0 Merge branch 'master' into bbuf 2015-11-30 15:53:49 -08:00
vjpai b6df94ad22 WIP 2015-11-30 15:52:50 -08:00
Julien Boeuf 6489740a7c Improving documentation. 2015-11-25 14:42:55 -08:00
Julien Boeuf 67c2c95788 Fixing typo. 2015-11-25 14:33:19 -08:00
yang-g 52705590e4 Add set pointer api to channel_arguments 2015-11-25 11:45:33 -08:00
yang-g a23f17b123 add server_builder_option 2015-11-25 10:21:05 -08:00
Craig Tiller 7221d999bb Global hook for doing something in response to a synchronous server call 2015-11-24 06:59:33 -08:00
Craig Tiller 52a2ebadcb Two argument variant for grpc::thread 2015-11-20 15:37:54 -08:00
Julien Boeuf 114f39475f Cpp example of how the plugins can be done. 2015-11-19 22:24:05 -08:00
Craig Tiller b113649517 clang-format 2015-11-18 11:30:17 -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 b0e5e082b0 include header 2015-11-17 14:26:15 -08:00
yang-g a89bf50cf1 Handle cancel before start case 2015-11-17 14:19:17 -08:00
Craig Tiller 36da1380af Merge github.com:grpc/grpc into new_op 2015-11-16 11:34:24 -08:00
Julien Boeuf 112f4a3035 Fixing the doc to warn of the dangers for overriding the target name when using SSL. 2015-11-11 18:34:28 -08:00
Craig Tiller 9beccc6024 Merge github.com:grpc/grpc into new_op 2015-11-04 09:09:24 -08:00
Craig Tiller 187c4b36d9 Merge pull request #3177 from podsvirov/topic-grpc-string-ref-npos-redifinition
Move static value grpc::string_ref::npos definition to cc file
2015-11-04 08:04:56 -08:00
Craig Tiller 5925603101 stream_op cleanup: miscellany 2015-11-02 14:19:15 -08:00
yang-g bd89dd8381 remove log spam 2015-10-27 16:18:30 -07:00
Nicolas Noble dcd35b8ad6 Merge pull request #3969 from grpc/release-0_11
Release 0 11 -> master
2015-10-26 17:41:17 -07:00
Jorge Canizales 0f5739be43 Mark WaitForInitialMetadata as override, for Clang 2015-10-23 17:58:35 -07:00
Julien Boeuf 3bb61d8917 Merge branch 'master' of https://github.com/grpc/grpc into core_creds_api_change 2015-10-17 22:14:29 -07:00
Julien Boeuf 54a902ed17 Successfully compile C++ libary (not tests yet). 2015-10-12 14:09:03 -07:00
David Garcia Quintas 7fd0fd5023 C++ Alarm implementation (with tests). 2015-10-07 19:04:58 -07:00
Craig Tiller dd69342218 Merge github.com:grpc/grpc into clang_format 2015-09-25 09:56:52 -07:00
Craig Tiller ddf3a511aa Add clang-format to sanity 2015-09-24 13:03:44 -07:00
Craig Tiller 04456843cd Windows fixes 2015-09-23 10:07:16 -07:00
Julien Boeuf c34b2e744c Do not use string_ref for output params.
It is very much unsafe to do so as the string_ref could point on a stack
variable of the callee.
2015-09-22 13:45:53 -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
Julien Boeuf 14929d4e35 Credentials plugin fixes (after the branch was merged). 2015-09-21 20:57:26 -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
David Garcia Quintas 49dd250565 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-09-08 16:01:09 -07:00
David Garcia Quintas 328deb28de Removed grpc_security.h from auth_context.h 2015-09-03 11:33:04 -07:00
Craig Tiller d6599a39e4 Replicate C++ docs from master to beta branch
Original PR #3074 by @dgquintas
2015-09-03 09:37:02 -07:00
Konstantin Podsvirov dc90c13bec Move static value grpc::string_ref::npos definition to cc file 2015-09-01 16:18:57 +03:00
Julien Boeuf 2d041188db Design and implementation of the core credentials plugin API.
- We use C++ as an example to show how this API can be used while still
  providing an idiomatic interface in the wrapped language of choice.
- No testing yet.
2015-08-31 20:30:09 -07:00
Julien Boeuf 0d47192afa Fixing headers and paths after merge with upstream. 2015-08-30 22:18:50 -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
Craig Tiller 89d56103eb Merge pull request #3104 from yang-g/create_channel
Create channel API change
2015-08-27 21:04:56 -07:00
Julien Boeuf 459faf3821 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-27 16:07:46 -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
yang-g dafcce980d channel creation API change 2015-08-27 11:34:05 -07:00
Julien Boeuf 35b559f6f7 Aligning C++ interface with C for the auth metadata processor. 2015-08-26 23:17:35 -07:00
yang-g 0d9f81f741 minor fixes 2015-08-26 22:04:30 -07:00
Julien Boeuf 5b3516e2c5 Merge branch 'master' of github.com:grpc/grpc into cpp_auth_md_processor 2015-08-26 11:19:10 -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 47ec9a40ad Add ostream support for string_ref 2015-08-26 09:47:51 -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
yang-g 1eeb21c4df api change to string_ref 2015-08-25 11:05:50 -07:00
yang-g d5539ec6e2 remove constexpr since gcc 4.4 or vs2010 does not support it 2015-08-25 11:05:29 -07:00
Julien Boeuf 0382bfae38 Merge branch 'master' of github.com:grpc/grpc into cpp_string_ref 2015-08-24 23:55:43 -07:00
Julien Boeuf 8fd915ab8d Adding grpc::string_ref class.
- Strict subset of
  http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2012/n3442.html
- Useful to avoid unnecessary string copies.
2015-08-24 23:41:54 -07:00
yang-g 3e4bd9598b merge with head 2015-08-24 15:54:07 -07:00
David Garcia Quintas e4f7c2fd13 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-08-24 15:31:59 -07:00
Vijay Pai 0660eaca00 Merge branch 'master' into fray 2015-08-24 14:33:39 -07:00
David Garcia Quintas c43648f250 Merge branch 'master' of github.com:grpc/grpc into compression-accept-encoding 2015-08-24 12:08:38 -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 9fb35a5332 split stream.h into sync_stream.h and async_stream.h 2015-08-21 15:49:35 -07:00
yang-g 9e2f90cd06 headers reorg 2015-08-21 15:35:03 -07:00
yang-g 961eeb0b44 Merge remote-tracking branch 'upstream/master' into docs 2015-08-20 12:18:28 -07:00
yang-g c317f07b56 Make Channel ctor private 2015-08-20 12:18:08 -07:00
yang-g ef00308e39 remove internal_stub 2015-08-20 11:40:51 -07:00