diff options
author | Craig Tiller <ctiller@google.com> | 2016-01-25 08:09:23 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-01-25 08:09:23 -0800 |
commit | 8b052112f21e25d760d2581bc17d9d81106a0d27 (patch) | |
tree | bfa04b55340a6bbe2ee302615b565df7d1abcb97 | |
parent | 8cdba6644a83333e53b6188ca95b5a6c88968257 (diff) | |
parent | e0a609365164417bef2fa130d2bacbb786fb9b03 (diff) |
Merge github.com:grpc/grpc into sceq
-rw-r--r-- | PYTHON-MANIFEST.in | 1 | ||||
-rw-r--r-- | build.yaml | 1 | ||||
-rw-r--r-- | include/grpc/census.h | 4 | ||||
-rw-r--r-- | setup.py | 5 | ||||
-rw-r--r-- | src/cpp/server/server_context.cc | 3 | ||||
-rw-r--r-- | src/python/grpcio/grpc_core_dependencies.py | 15 | ||||
-rw-r--r-- | test/core/census/tag_set_test.c | 3 | ||||
-rwxr-xr-x | tools/run_tests/pre_build_csharp.sh | 7 |
8 files changed, 32 insertions, 7 deletions
diff --git a/PYTHON-MANIFEST.in b/PYTHON-MANIFEST.in index 02bd9b5229..52ef1aba5b 100644 --- a/PYTHON-MANIFEST.in +++ b/PYTHON-MANIFEST.in @@ -3,6 +3,7 @@ graft src/python/grpcio/tests graft src/core graft include/grpc graft third_party/boringssl +graft third_party/zlib include src/python/grpcio/commands.py include src/python/grpcio/grpc_core_dependencies.py include src/python/grpcio/README.rst diff --git a/build.yaml b/build.yaml index 21d4ca8fb8..525035397c 100644 --- a/build.yaml +++ b/build.yaml @@ -2638,3 +2638,4 @@ python_dependencies: - grpc - gpr - boringssl + - z diff --git a/include/grpc/census.h b/include/grpc/census.h index ab0e0e4802..f4130c7e6a 100644 --- a/include/grpc/census.h +++ b/include/grpc/census.h @@ -506,8 +506,8 @@ extern census_aggregation_ops census_agg_window; construction via census_define_view(). */ typedef struct { const census_aggregation_ops *ops; - const void - *create_arg; /* Argument to be used for aggregation initialization. */ + const void * + create_arg; /* Argument to be used for aggregation initialization. */ } census_aggregation; /** A census view type. Opaque. */ @@ -45,6 +45,7 @@ egg_info.manifest_maker.template = 'PYTHON-MANIFEST.in' PYTHON_STEM = './src/python/grpcio' CORE_INCLUDE = ('./include', '.',) BORINGSSL_INCLUDE = ('./third_party/boringssl/include',) +ZLIB_INCLUDE = ('./third_party/zlib',) # Ensure we're in the proper directory whether or not we're being used by pip. os.chdir(os.path.dirname(os.path.abspath(__file__))) @@ -75,9 +76,9 @@ CYTHON_EXTENSION_PACKAGE_NAMES = () CYTHON_EXTENSION_MODULE_NAMES = ('grpc._cython.cygrpc',) EXTENSION_INCLUDE_DIRECTORIES = ( - (PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE) + (PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE + ZLIB_INCLUDE) -EXTENSION_LIBRARIES = ('z', 'm',) +EXTENSION_LIBRARIES = ('m',) if not "darwin" in sys.platform: EXTENSION_LIBRARIES += ('rt',) diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc index 8193e70660..b3a74c7fce 100644 --- a/src/cpp/server/server_context.cc +++ b/src/cpp/server/server_context.cc @@ -1,6 +1,6 @@ /* * - * Copyright 2015, Google Inc. + * Copyright 2015-2016, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -122,6 +122,7 @@ ServerContext::ServerContext() : completion_op_(nullptr), has_notify_when_done_tag_(false), async_notify_when_done_tag_(nullptr), + deadline_(gpr_inf_future(GPR_CLOCK_REALTIME)), call_(nullptr), cq_(nullptr), sent_initial_metadata_(false) {} diff --git a/src/python/grpcio/grpc_core_dependencies.py b/src/python/grpcio/grpc_core_dependencies.py index c921c69b4c..f8f45a7911 100644 --- a/src/python/grpcio/grpc_core_dependencies.py +++ b/src/python/grpcio/grpc_core_dependencies.py @@ -518,4 +518,19 @@ CORE_SOURCE_FILES = [ 'third_party/boringssl/ssl/t1_enc.c', 'third_party/boringssl/ssl/t1_lib.c', 'third_party/boringssl/ssl/tls_record.c', + 'third_party/zlib/adler32.c', + 'third_party/zlib/compress.c', + 'third_party/zlib/crc32.c', + 'third_party/zlib/deflate.c', + 'third_party/zlib/gzclose.c', + 'third_party/zlib/gzlib.c', + 'third_party/zlib/gzread.c', + 'third_party/zlib/gzwrite.c', + 'third_party/zlib/infback.c', + 'third_party/zlib/inffast.c', + 'third_party/zlib/inflate.c', + 'third_party/zlib/inftrees.c', + 'third_party/zlib/trees.c', + 'third_party/zlib/uncompr.c', + 'third_party/zlib/zutil.c', ] diff --git a/test/core/census/tag_set_test.c b/test/core/census/tag_set_test.c index 8e09e6c1c6..1056e98d55 100644 --- a/test/core/census/tag_set_test.c +++ b/test/core/census/tag_set_test.c @@ -319,9 +319,10 @@ static void replace_add_delete_test(void) { census_tag_set_destroy(cts2); } +#define BUF_SIZE 200 + // test encode/decode. static void encode_decode_test(void) { - const size_t BUF_SIZE = 200; char buffer[BUF_SIZE]; struct census_tag_set *cts = census_tag_set_create(NULL, basic_tags, BASIC_TAG_COUNT, NULL); diff --git a/tools/run_tests/pre_build_csharp.sh b/tools/run_tests/pre_build_csharp.sh index 42ff60bea2..4341c0256f 100755 --- a/tools/run_tests/pre_build_csharp.sh +++ b/tools/run_tests/pre_build_csharp.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2015, Google Inc. +# Copyright 2015-2016, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -35,6 +35,11 @@ cd $(dirname $0)/../../src/csharp root=`pwd` +if [ -x "$(command -v nuget)" ] +then + nuget restore Grpc.sln +fi + if [ -n "$NUGET" ] then $NUGET restore Grpc.sln |