grpc 1.0.0.pre2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a66bb42d25ec71cb62d54fa3fb51c4079daac412
4
- data.tar.gz: 2c50fc771054f69a4d0ff9ca0724bbb65eeca137
3
+ metadata.gz: 886ab74a8494896277aebb215b8b7bac9bc7555b
4
+ data.tar.gz: 39398f58320ca24fae8c78fde7f4f04f08b5dab1
5
5
  SHA512:
6
- metadata.gz: 14cebd91ffce3a5b0ce44cb8ae37be42cfb39a60aa566d15c0efce6caa65805096540fd2ac6917c6877e5c915b36fd058155794dfc3b0ee2d980a187e4756a6a
7
- data.tar.gz: d047c9804da730b19f1bd8faf43a8231e12ab4cf8d0eb889f643a25de6890582ec929ba50465331d93ac62dd2bd9f69eebd588cfe09ad8c6eceb4b5dff6d7077
6
+ metadata.gz: 0717968250cd2ad66892124b533ad007fdd50b7fb2cb3abfb443007d42c9e57ae5be41a013d5fc270516e91953c949bf66d35852544e93add26f69ad3eb20607
7
+ data.tar.gz: af848368a893842e26ba1d451e5e5e0ec48d7d81db4aad0f954ac84e2793fcc1ea72189ef07021041021183700b07ef1f62b43bed20b646533a9d28e24206d9c
data/Makefile CHANGED
@@ -415,7 +415,7 @@ E = @echo
415
415
  Q = @
416
416
  endif
417
417
 
418
- VERSION = 1.0.0-pre2
418
+ VERSION = 1.0.0
419
419
 
420
420
  CPPFLAGS_NO_ARCH += $(addprefix -I, $(INCLUDES)) $(addprefix -D, $(DEFINES))
421
421
  CPPFLAGS += $(CPPFLAGS_NO_ARCH) $(ARCH_FLAGS)
@@ -469,7 +469,7 @@ ifeq ($(HAS_PKG_CONFIG),true)
469
469
  OPENSSL_ALPN_CHECK_CMD = $(PKG_CONFIG) --atleast-version=1.0.2 openssl
470
470
  OPENSSL_NPN_CHECK_CMD = $(PKG_CONFIG) --atleast-version=1.0.1 openssl
471
471
  ZLIB_CHECK_CMD = $(PKG_CONFIG) --exists zlib
472
- PROTOBUF_CHECK_CMD = $(PKG_CONFIG) --atleast-version=3.0.0-alpha-3 protobuf
472
+ PROTOBUF_CHECK_CMD = $(PKG_CONFIG) --atleast-version=3.0.0 protobuf
473
473
  else # HAS_PKG_CONFIG
474
474
 
475
475
  ifeq ($(SYSTEM),MINGW32)
@@ -767,13 +767,6 @@ ifeq ($(MAKECMDGOALS),clean)
767
767
  NO_DEPS = true
768
768
  endif
769
769
 
770
- INSTALL_OK = false
771
- ifeq ($(HAS_VALID_PROTOC),true)
772
- ifeq ($(HAS_SYSTEM_PROTOBUF_VERIFY),true)
773
- INSTALL_OK = true
774
- endif
775
- endif
776
-
777
770
  .SECONDARY = %.pb.h %.pb.cc
778
771
 
779
772
  PROTOC_PLUGINS = $(BINDIR)/$(CONFIG)/grpc_cpp_plugin $(BINDIR)/$(CONFIG)/grpc_csharp_plugin $(BINDIR)/$(CONFIG)/grpc_node_plugin $(BINDIR)/$(CONFIG)/grpc_objective_c_plugin $(BINDIR)/$(CONFIG)/grpc_python_plugin $(BINDIR)/$(CONFIG)/grpc_ruby_plugin
@@ -2102,7 +2095,7 @@ $(OBJDIR)/$(CONFIG)/%.o : %.cc
2102
2095
  $(Q) mkdir -p `dirname $@`
2103
2096
  $(Q) $(CXX) $(CPPFLAGS) $(CXXFLAGS) -MMD -MF $(addsuffix .dep, $(basename $@)) -c -o $@ $<
2104
2097
 
2105
- install: install_c install_cxx install-plugins install-certs verify-install
2098
+ install: install_c install_cxx install-plugins install-certs
2106
2099
 
2107
2100
  install_c: install-headers_c install-static_c install-shared_c
2108
2101
 
@@ -2285,28 +2278,6 @@ install-certs: etc/roots.pem
2285
2278
  $(Q) $(INSTALL) -d $(prefix)/share/grpc
2286
2279
  $(Q) $(INSTALL) etc/roots.pem $(prefix)/share/grpc/roots.pem
2287
2280
 
2288
- verify-install:
2289
- ifeq ($(INSTALL_OK),true)
2290
- @echo "Your system looks ready to go."
2291
- @echo
2292
- else
2293
- @echo "Warning: it looks like protoc 3.0.0+ isn't installed on your system,"
2294
- @echo "which means that you won't be able to compile .proto files for use"
2295
- @echo "with gRPC."
2296
- @echo
2297
- @echo "If you are just using pre-compiled protocol buffers, or you otherwise"
2298
- @echo "have no need to compile .proto files, you can ignore this."
2299
- @echo
2300
- @echo "If you do need protobuf for some reason, you can download and install"
2301
- @echo "it from:"
2302
- @echo
2303
- @echo " https://github.com/google/protobuf/releases"
2304
- @echo
2305
- @echo "Once you've done so, you can re-run this check by doing:"
2306
- @echo
2307
- @echo " make verify-install"
2308
- endif
2309
-
2310
2281
  clean:
2311
2282
  $(E) "[CLEAN] Cleaning build directories."
2312
2283
  $(Q) $(RM) -rf $(OBJDIR) $(LIBDIR) $(BINDIR) $(GENDIR) cache.mk
@@ -2662,6 +2633,7 @@ PUBLIC_HEADERS_C += \
2662
2633
  include/grpc/compression.h \
2663
2634
  include/grpc/grpc.h \
2664
2635
  include/grpc/grpc_posix.h \
2636
+ include/grpc/grpc_security_constants.h \
2665
2637
  include/grpc/status.h \
2666
2638
  include/grpc/impl/codegen/byte_buffer.h \
2667
2639
  include/grpc/impl/codegen/byte_buffer_reader.h \
@@ -2685,7 +2657,6 @@ PUBLIC_HEADERS_C += \
2685
2657
  include/grpc/impl/codegen/sync_windows.h \
2686
2658
  include/grpc/impl/codegen/time.h \
2687
2659
  include/grpc/grpc_security.h \
2688
- include/grpc/grpc_security_constants.h \
2689
2660
  include/grpc/census.h \
2690
2661
 
2691
2662
  LIBGRPC_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC_SRC))))
@@ -2911,6 +2882,7 @@ PUBLIC_HEADERS_C += \
2911
2882
  include/grpc/compression.h \
2912
2883
  include/grpc/grpc.h \
2913
2884
  include/grpc/grpc_posix.h \
2885
+ include/grpc/grpc_security_constants.h \
2914
2886
  include/grpc/status.h \
2915
2887
  include/grpc/impl/codegen/byte_buffer.h \
2916
2888
  include/grpc/impl/codegen/byte_buffer_reader.h \
@@ -2935,7 +2907,6 @@ PUBLIC_HEADERS_C += \
2935
2907
  include/grpc/impl/codegen/time.h \
2936
2908
  include/grpc/grpc_cronet.h \
2937
2909
  include/grpc/grpc_security.h \
2938
- include/grpc/grpc_security_constants.h \
2939
2910
 
2940
2911
  LIBGRPC_CRONET_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC_CRONET_SRC))))
2941
2912
 
@@ -3245,6 +3216,7 @@ PUBLIC_HEADERS_C += \
3245
3216
  include/grpc/compression.h \
3246
3217
  include/grpc/grpc.h \
3247
3218
  include/grpc/grpc_posix.h \
3219
+ include/grpc/grpc_security_constants.h \
3248
3220
  include/grpc/status.h \
3249
3221
  include/grpc/impl/codegen/byte_buffer.h \
3250
3222
  include/grpc/impl/codegen/byte_buffer_reader.h \
@@ -3417,6 +3389,93 @@ LIBGRPC++_SRC = \
3417
3389
  src/cpp/util/status.cc \
3418
3390
  src/cpp/util/string_ref.cc \
3419
3391
  src/cpp/util/time.cc \
3392
+ src/core/lib/channel/channel_args.c \
3393
+ src/core/lib/channel/channel_stack.c \
3394
+ src/core/lib/channel/channel_stack_builder.c \
3395
+ src/core/lib/channel/compress_filter.c \
3396
+ src/core/lib/channel/connected_channel.c \
3397
+ src/core/lib/channel/http_client_filter.c \
3398
+ src/core/lib/channel/http_server_filter.c \
3399
+ src/core/lib/compression/compression.c \
3400
+ src/core/lib/compression/message_compress.c \
3401
+ src/core/lib/debug/trace.c \
3402
+ src/core/lib/http/format_request.c \
3403
+ src/core/lib/http/httpcli.c \
3404
+ src/core/lib/http/parser.c \
3405
+ src/core/lib/iomgr/closure.c \
3406
+ src/core/lib/iomgr/endpoint.c \
3407
+ src/core/lib/iomgr/endpoint_pair_posix.c \
3408
+ src/core/lib/iomgr/endpoint_pair_windows.c \
3409
+ src/core/lib/iomgr/error.c \
3410
+ src/core/lib/iomgr/ev_epoll_linux.c \
3411
+ src/core/lib/iomgr/ev_poll_and_epoll_posix.c \
3412
+ src/core/lib/iomgr/ev_poll_posix.c \
3413
+ src/core/lib/iomgr/ev_posix.c \
3414
+ src/core/lib/iomgr/exec_ctx.c \
3415
+ src/core/lib/iomgr/executor.c \
3416
+ src/core/lib/iomgr/iocp_windows.c \
3417
+ src/core/lib/iomgr/iomgr.c \
3418
+ src/core/lib/iomgr/iomgr_posix.c \
3419
+ src/core/lib/iomgr/iomgr_windows.c \
3420
+ src/core/lib/iomgr/load_file.c \
3421
+ src/core/lib/iomgr/network_status_tracker.c \
3422
+ src/core/lib/iomgr/polling_entity.c \
3423
+ src/core/lib/iomgr/pollset_set_windows.c \
3424
+ src/core/lib/iomgr/pollset_windows.c \
3425
+ src/core/lib/iomgr/resolve_address_posix.c \
3426
+ src/core/lib/iomgr/resolve_address_windows.c \
3427
+ src/core/lib/iomgr/sockaddr_utils.c \
3428
+ src/core/lib/iomgr/socket_utils_common_posix.c \
3429
+ src/core/lib/iomgr/socket_utils_linux.c \
3430
+ src/core/lib/iomgr/socket_utils_posix.c \
3431
+ src/core/lib/iomgr/socket_windows.c \
3432
+ src/core/lib/iomgr/tcp_client_posix.c \
3433
+ src/core/lib/iomgr/tcp_client_windows.c \
3434
+ src/core/lib/iomgr/tcp_posix.c \
3435
+ src/core/lib/iomgr/tcp_server_posix.c \
3436
+ src/core/lib/iomgr/tcp_server_windows.c \
3437
+ src/core/lib/iomgr/tcp_windows.c \
3438
+ src/core/lib/iomgr/time_averaged_stats.c \
3439
+ src/core/lib/iomgr/timer.c \
3440
+ src/core/lib/iomgr/timer_heap.c \
3441
+ src/core/lib/iomgr/udp_server.c \
3442
+ src/core/lib/iomgr/unix_sockets_posix.c \
3443
+ src/core/lib/iomgr/unix_sockets_posix_noop.c \
3444
+ src/core/lib/iomgr/wakeup_fd_eventfd.c \
3445
+ src/core/lib/iomgr/wakeup_fd_nospecial.c \
3446
+ src/core/lib/iomgr/wakeup_fd_pipe.c \
3447
+ src/core/lib/iomgr/wakeup_fd_posix.c \
3448
+ src/core/lib/iomgr/workqueue_posix.c \
3449
+ src/core/lib/iomgr/workqueue_windows.c \
3450
+ src/core/lib/json/json.c \
3451
+ src/core/lib/json/json_reader.c \
3452
+ src/core/lib/json/json_string.c \
3453
+ src/core/lib/json/json_writer.c \
3454
+ src/core/lib/surface/alarm.c \
3455
+ src/core/lib/surface/api_trace.c \
3456
+ src/core/lib/surface/byte_buffer.c \
3457
+ src/core/lib/surface/byte_buffer_reader.c \
3458
+ src/core/lib/surface/call.c \
3459
+ src/core/lib/surface/call_details.c \
3460
+ src/core/lib/surface/call_log_batch.c \
3461
+ src/core/lib/surface/channel.c \
3462
+ src/core/lib/surface/channel_init.c \
3463
+ src/core/lib/surface/channel_ping.c \
3464
+ src/core/lib/surface/channel_stack_type.c \
3465
+ src/core/lib/surface/completion_queue.c \
3466
+ src/core/lib/surface/event_string.c \
3467
+ src/core/lib/surface/lame_client.c \
3468
+ src/core/lib/surface/metadata_array.c \
3469
+ src/core/lib/surface/server.c \
3470
+ src/core/lib/surface/validate_metadata.c \
3471
+ src/core/lib/surface/version.c \
3472
+ src/core/lib/transport/byte_stream.c \
3473
+ src/core/lib/transport/connectivity_state.c \
3474
+ src/core/lib/transport/metadata.c \
3475
+ src/core/lib/transport/metadata_batch.c \
3476
+ src/core/lib/transport/static_metadata.c \
3477
+ src/core/lib/transport/transport.c \
3478
+ src/core/lib/transport/transport_op_string.c \
3420
3479
  src/cpp/codegen/codegen_init.cc \
3421
3480
 
3422
3481
  PUBLIC_HEADERS_CXX += \
@@ -3467,6 +3526,34 @@ PUBLIC_HEADERS_CXX += \
3467
3526
  include/grpc++/support/stub_options.h \
3468
3527
  include/grpc++/support/sync_stream.h \
3469
3528
  include/grpc++/support/time.h \
3529
+ include/grpc/byte_buffer.h \
3530
+ include/grpc/byte_buffer_reader.h \
3531
+ include/grpc/compression.h \
3532
+ include/grpc/grpc.h \
3533
+ include/grpc/grpc_posix.h \
3534
+ include/grpc/grpc_security_constants.h \
3535
+ include/grpc/status.h \
3536
+ include/grpc/impl/codegen/byte_buffer.h \
3537
+ include/grpc/impl/codegen/byte_buffer_reader.h \
3538
+ include/grpc/impl/codegen/compression_types.h \
3539
+ include/grpc/impl/codegen/connectivity_state.h \
3540
+ include/grpc/impl/codegen/grpc_types.h \
3541
+ include/grpc/impl/codegen/propagation_bits.h \
3542
+ include/grpc/impl/codegen/status.h \
3543
+ include/grpc/impl/codegen/alloc.h \
3544
+ include/grpc/impl/codegen/atm.h \
3545
+ include/grpc/impl/codegen/atm_gcc_atomic.h \
3546
+ include/grpc/impl/codegen/atm_gcc_sync.h \
3547
+ include/grpc/impl/codegen/atm_windows.h \
3548
+ include/grpc/impl/codegen/log.h \
3549
+ include/grpc/impl/codegen/port_platform.h \
3550
+ include/grpc/impl/codegen/slice.h \
3551
+ include/grpc/impl/codegen/slice_buffer.h \
3552
+ include/grpc/impl/codegen/sync.h \
3553
+ include/grpc/impl/codegen/sync_generic.h \
3554
+ include/grpc/impl/codegen/sync_posix.h \
3555
+ include/grpc/impl/codegen/sync_windows.h \
3556
+ include/grpc/impl/codegen/time.h \
3470
3557
  include/grpc++/impl/codegen/async_stream.h \
3471
3558
  include/grpc++/impl/codegen/async_unary_call.h \
3472
3559
  include/grpc++/impl/codegen/call.h \
@@ -3497,27 +3584,6 @@ PUBLIC_HEADERS_CXX += \
3497
3584
  include/grpc++/impl/codegen/sync_no_cxx11.h \
3498
3585
  include/grpc++/impl/codegen/sync_stream.h \
3499
3586
  include/grpc++/impl/codegen/time.h \
3500
- include/grpc/impl/codegen/byte_buffer.h \
3501
- include/grpc/impl/codegen/byte_buffer_reader.h \
3502
- include/grpc/impl/codegen/compression_types.h \
3503
- include/grpc/impl/codegen/connectivity_state.h \
3504
- include/grpc/impl/codegen/grpc_types.h \
3505
- include/grpc/impl/codegen/propagation_bits.h \
3506
- include/grpc/impl/codegen/status.h \
3507
- include/grpc/impl/codegen/alloc.h \
3508
- include/grpc/impl/codegen/atm.h \
3509
- include/grpc/impl/codegen/atm_gcc_atomic.h \
3510
- include/grpc/impl/codegen/atm_gcc_sync.h \
3511
- include/grpc/impl/codegen/atm_windows.h \
3512
- include/grpc/impl/codegen/log.h \
3513
- include/grpc/impl/codegen/port_platform.h \
3514
- include/grpc/impl/codegen/slice.h \
3515
- include/grpc/impl/codegen/slice_buffer.h \
3516
- include/grpc/impl/codegen/sync.h \
3517
- include/grpc/impl/codegen/sync_generic.h \
3518
- include/grpc/impl/codegen/sync_posix.h \
3519
- include/grpc/impl/codegen/sync_windows.h \
3520
- include/grpc/impl/codegen/time.h \
3521
3587
 
3522
3588
  LIBGRPC++_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC++_SRC))))
3523
3589
 
@@ -3554,18 +3620,18 @@ endif
3554
3620
 
3555
3621
 
3556
3622
  ifeq ($(SYSTEM),MINGW32)
3557
- $(LIBDIR)/$(CONFIG)/grpc++$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/grpc.$(SHARED_EXT) $(OPENSSL_DEP)
3623
+ $(LIBDIR)/$(CONFIG)/grpc++$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/grpc.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/gpr.$(SHARED_EXT) $(OPENSSL_DEP)
3558
3624
  $(E) "[LD] Linking $@"
3559
3625
  $(Q) mkdir -p `dirname $@`
3560
- $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared grpc++.def -Wl,--output-def=$(LIBDIR)/$(CONFIG)/grpc++$(SHARED_VERSION).def -Wl,--out-implib=$(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION)-dll.a -o $(LIBDIR)/$(CONFIG)/grpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgrpc-imp
3626
+ $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared grpc++.def -Wl,--output-def=$(LIBDIR)/$(CONFIG)/grpc++$(SHARED_VERSION).def -Wl,--out-implib=$(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION)-dll.a -o $(LIBDIR)/$(CONFIG)/grpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgrpc-imp -lgpr-imp
3561
3627
  else
3562
- $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/libgrpc.$(SHARED_EXT) $(OPENSSL_DEP)
3628
+ $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/libgrpc.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgpr.$(SHARED_EXT) $(OPENSSL_DEP)
3563
3629
  $(E) "[LD] Linking $@"
3564
3630
  $(Q) mkdir -p `dirname $@`
3565
3631
  ifeq ($(SYSTEM),Darwin)
3566
- $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -install_name $(SHARED_PREFIX)grpc++$(SHARED_VERSION).$(SHARED_EXT) -dynamiclib -o $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgrpc
3632
+ $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -install_name $(SHARED_PREFIX)grpc++$(SHARED_VERSION).$(SHARED_EXT) -dynamiclib -o $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgrpc -lgpr
3567
3633
  else
3568
- $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,libgrpc++.so.1 -o $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgrpc
3634
+ $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,libgrpc++.so.1 -o $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgrpc -lgpr
3569
3635
  $(Q) ln -sf $(SHARED_PREFIX)grpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).so.1
3570
3636
  $(Q) ln -sf $(SHARED_PREFIX)grpc++$(SHARED_VERSION).$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc++$(SHARED_VERSION).so
3571
3637
  endif
@@ -3904,6 +3970,93 @@ LIBGRPC++_UNSECURE_SRC = \
3904
3970
  src/cpp/util/status.cc \
3905
3971
  src/cpp/util/string_ref.cc \
3906
3972
  src/cpp/util/time.cc \
3973
+ src/core/lib/channel/channel_args.c \
3974
+ src/core/lib/channel/channel_stack.c \
3975
+ src/core/lib/channel/channel_stack_builder.c \
3976
+ src/core/lib/channel/compress_filter.c \
3977
+ src/core/lib/channel/connected_channel.c \
3978
+ src/core/lib/channel/http_client_filter.c \
3979
+ src/core/lib/channel/http_server_filter.c \
3980
+ src/core/lib/compression/compression.c \
3981
+ src/core/lib/compression/message_compress.c \
3982
+ src/core/lib/debug/trace.c \
3983
+ src/core/lib/http/format_request.c \
3984
+ src/core/lib/http/httpcli.c \
3985
+ src/core/lib/http/parser.c \
3986
+ src/core/lib/iomgr/closure.c \
3987
+ src/core/lib/iomgr/endpoint.c \
3988
+ src/core/lib/iomgr/endpoint_pair_posix.c \
3989
+ src/core/lib/iomgr/endpoint_pair_windows.c \
3990
+ src/core/lib/iomgr/error.c \
3991
+ src/core/lib/iomgr/ev_epoll_linux.c \
3992
+ src/core/lib/iomgr/ev_poll_and_epoll_posix.c \
3993
+ src/core/lib/iomgr/ev_poll_posix.c \
3994
+ src/core/lib/iomgr/ev_posix.c \
3995
+ src/core/lib/iomgr/exec_ctx.c \
3996
+ src/core/lib/iomgr/executor.c \
3997
+ src/core/lib/iomgr/iocp_windows.c \
3998
+ src/core/lib/iomgr/iomgr.c \
3999
+ src/core/lib/iomgr/iomgr_posix.c \
4000
+ src/core/lib/iomgr/iomgr_windows.c \
4001
+ src/core/lib/iomgr/load_file.c \
4002
+ src/core/lib/iomgr/network_status_tracker.c \
4003
+ src/core/lib/iomgr/polling_entity.c \
4004
+ src/core/lib/iomgr/pollset_set_windows.c \
4005
+ src/core/lib/iomgr/pollset_windows.c \
4006
+ src/core/lib/iomgr/resolve_address_posix.c \
4007
+ src/core/lib/iomgr/resolve_address_windows.c \
4008
+ src/core/lib/iomgr/sockaddr_utils.c \
4009
+ src/core/lib/iomgr/socket_utils_common_posix.c \
4010
+ src/core/lib/iomgr/socket_utils_linux.c \
4011
+ src/core/lib/iomgr/socket_utils_posix.c \
4012
+ src/core/lib/iomgr/socket_windows.c \
4013
+ src/core/lib/iomgr/tcp_client_posix.c \
4014
+ src/core/lib/iomgr/tcp_client_windows.c \
4015
+ src/core/lib/iomgr/tcp_posix.c \
4016
+ src/core/lib/iomgr/tcp_server_posix.c \
4017
+ src/core/lib/iomgr/tcp_server_windows.c \
4018
+ src/core/lib/iomgr/tcp_windows.c \
4019
+ src/core/lib/iomgr/time_averaged_stats.c \
4020
+ src/core/lib/iomgr/timer.c \
4021
+ src/core/lib/iomgr/timer_heap.c \
4022
+ src/core/lib/iomgr/udp_server.c \
4023
+ src/core/lib/iomgr/unix_sockets_posix.c \
4024
+ src/core/lib/iomgr/unix_sockets_posix_noop.c \
4025
+ src/core/lib/iomgr/wakeup_fd_eventfd.c \
4026
+ src/core/lib/iomgr/wakeup_fd_nospecial.c \
4027
+ src/core/lib/iomgr/wakeup_fd_pipe.c \
4028
+ src/core/lib/iomgr/wakeup_fd_posix.c \
4029
+ src/core/lib/iomgr/workqueue_posix.c \
4030
+ src/core/lib/iomgr/workqueue_windows.c \
4031
+ src/core/lib/json/json.c \
4032
+ src/core/lib/json/json_reader.c \
4033
+ src/core/lib/json/json_string.c \
4034
+ src/core/lib/json/json_writer.c \
4035
+ src/core/lib/surface/alarm.c \
4036
+ src/core/lib/surface/api_trace.c \
4037
+ src/core/lib/surface/byte_buffer.c \
4038
+ src/core/lib/surface/byte_buffer_reader.c \
4039
+ src/core/lib/surface/call.c \
4040
+ src/core/lib/surface/call_details.c \
4041
+ src/core/lib/surface/call_log_batch.c \
4042
+ src/core/lib/surface/channel.c \
4043
+ src/core/lib/surface/channel_init.c \
4044
+ src/core/lib/surface/channel_ping.c \
4045
+ src/core/lib/surface/channel_stack_type.c \
4046
+ src/core/lib/surface/completion_queue.c \
4047
+ src/core/lib/surface/event_string.c \
4048
+ src/core/lib/surface/lame_client.c \
4049
+ src/core/lib/surface/metadata_array.c \
4050
+ src/core/lib/surface/server.c \
4051
+ src/core/lib/surface/validate_metadata.c \
4052
+ src/core/lib/surface/version.c \
4053
+ src/core/lib/transport/byte_stream.c \
4054
+ src/core/lib/transport/connectivity_state.c \
4055
+ src/core/lib/transport/metadata.c \
4056
+ src/core/lib/transport/metadata_batch.c \
4057
+ src/core/lib/transport/static_metadata.c \
4058
+ src/core/lib/transport/transport.c \
4059
+ src/core/lib/transport/transport_op_string.c \
3907
4060
  src/cpp/codegen/codegen_init.cc \
3908
4061
 
3909
4062
  PUBLIC_HEADERS_CXX += \
@@ -3954,6 +4107,34 @@ PUBLIC_HEADERS_CXX += \
3954
4107
  include/grpc++/support/stub_options.h \
3955
4108
  include/grpc++/support/sync_stream.h \
3956
4109
  include/grpc++/support/time.h \
4110
+ include/grpc/byte_buffer.h \
4111
+ include/grpc/byte_buffer_reader.h \
4112
+ include/grpc/compression.h \
4113
+ include/grpc/grpc.h \
4114
+ include/grpc/grpc_posix.h \
4115
+ include/grpc/grpc_security_constants.h \
4116
+ include/grpc/status.h \
4117
+ include/grpc/impl/codegen/byte_buffer.h \
4118
+ include/grpc/impl/codegen/byte_buffer_reader.h \
4119
+ include/grpc/impl/codegen/compression_types.h \
4120
+ include/grpc/impl/codegen/connectivity_state.h \
4121
+ include/grpc/impl/codegen/grpc_types.h \
4122
+ include/grpc/impl/codegen/propagation_bits.h \
4123
+ include/grpc/impl/codegen/status.h \
4124
+ include/grpc/impl/codegen/alloc.h \
4125
+ include/grpc/impl/codegen/atm.h \
4126
+ include/grpc/impl/codegen/atm_gcc_atomic.h \
4127
+ include/grpc/impl/codegen/atm_gcc_sync.h \
4128
+ include/grpc/impl/codegen/atm_windows.h \
4129
+ include/grpc/impl/codegen/log.h \
4130
+ include/grpc/impl/codegen/port_platform.h \
4131
+ include/grpc/impl/codegen/slice.h \
4132
+ include/grpc/impl/codegen/slice_buffer.h \
4133
+ include/grpc/impl/codegen/sync.h \
4134
+ include/grpc/impl/codegen/sync_generic.h \
4135
+ include/grpc/impl/codegen/sync_posix.h \
4136
+ include/grpc/impl/codegen/sync_windows.h \
4137
+ include/grpc/impl/codegen/time.h \
3957
4138
  include/grpc++/impl/codegen/async_stream.h \
3958
4139
  include/grpc++/impl/codegen/async_unary_call.h \
3959
4140
  include/grpc++/impl/codegen/call.h \
@@ -3984,27 +4165,6 @@ PUBLIC_HEADERS_CXX += \
3984
4165
  include/grpc++/impl/codegen/sync_no_cxx11.h \
3985
4166
  include/grpc++/impl/codegen/sync_stream.h \
3986
4167
  include/grpc++/impl/codegen/time.h \
3987
- include/grpc/impl/codegen/byte_buffer.h \
3988
- include/grpc/impl/codegen/byte_buffer_reader.h \
3989
- include/grpc/impl/codegen/compression_types.h \
3990
- include/grpc/impl/codegen/connectivity_state.h \
3991
- include/grpc/impl/codegen/grpc_types.h \
3992
- include/grpc/impl/codegen/propagation_bits.h \
3993
- include/grpc/impl/codegen/status.h \
3994
- include/grpc/impl/codegen/alloc.h \
3995
- include/grpc/impl/codegen/atm.h \
3996
- include/grpc/impl/codegen/atm_gcc_atomic.h \
3997
- include/grpc/impl/codegen/atm_gcc_sync.h \
3998
- include/grpc/impl/codegen/atm_windows.h \
3999
- include/grpc/impl/codegen/log.h \
4000
- include/grpc/impl/codegen/port_platform.h \
4001
- include/grpc/impl/codegen/slice.h \
4002
- include/grpc/impl/codegen/slice_buffer.h \
4003
- include/grpc/impl/codegen/sync.h \
4004
- include/grpc/impl/codegen/sync_generic.h \
4005
- include/grpc/impl/codegen/sync_posix.h \
4006
- include/grpc/impl/codegen/sync_windows.h \
4007
- include/grpc/impl/codegen/time.h \
4008
4168
 
4009
4169
  LIBGRPC++_UNSECURE_OBJS = $(addprefix $(OBJDIR)/$(CONFIG)/, $(addsuffix .o, $(basename $(LIBGRPC++_UNSECURE_SRC))))
4010
4170
 
@@ -4031,18 +4191,18 @@ endif
4031
4191
 
4032
4192
 
4033
4193
  ifeq ($(SYSTEM),MINGW32)
4034
- $(LIBDIR)/$(CONFIG)/grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_UNSECURE_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/gpr.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/grpc_unsecure.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/grpc.$(SHARED_EXT)
4194
+ $(LIBDIR)/$(CONFIG)/grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_UNSECURE_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/gpr.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/grpc_unsecure.$(SHARED_EXT)
4035
4195
  $(E) "[LD] Linking $@"
4036
4196
  $(Q) mkdir -p `dirname $@`
4037
- $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared grpc++_unsecure.def -Wl,--output-def=$(LIBDIR)/$(CONFIG)/grpc++_unsecure$(SHARED_VERSION).def -Wl,--out-implib=$(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION)-dll.a -o $(LIBDIR)/$(CONFIG)/grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_UNSECURE_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgpr-imp -lgrpc_unsecure-imp -lgrpc-imp
4197
+ $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared grpc++_unsecure.def -Wl,--output-def=$(LIBDIR)/$(CONFIG)/grpc++_unsecure$(SHARED_VERSION).def -Wl,--out-implib=$(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION)-dll.a -o $(LIBDIR)/$(CONFIG)/grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_UNSECURE_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgpr-imp -lgrpc_unsecure-imp
4038
4198
  else
4039
- $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_UNSECURE_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/libgpr.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc_unsecure.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc.$(SHARED_EXT)
4199
+ $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT): $(LIBGRPC++_UNSECURE_OBJS) $(ZLIB_DEP) $(PROTOBUF_DEP) $(LIBDIR)/$(CONFIG)/libgpr.$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc_unsecure.$(SHARED_EXT)
4040
4200
  $(E) "[LD] Linking $@"
4041
4201
  $(Q) mkdir -p `dirname $@`
4042
4202
  ifeq ($(SYSTEM),Darwin)
4043
- $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -install_name $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) -dynamiclib -o $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_UNSECURE_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgpr -lgrpc_unsecure -lgrpc
4203
+ $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -install_name $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) -dynamiclib -o $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_UNSECURE_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgpr -lgrpc_unsecure
4044
4204
  else
4045
- $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,libgrpc++_unsecure.so.1 -o $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_UNSECURE_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgpr -lgrpc_unsecure -lgrpc
4205
+ $(Q) $(LDXX) $(LDFLAGS) -L$(LIBDIR)/$(CONFIG) -shared -Wl,-soname,libgrpc++_unsecure.so.1 -o $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBGRPC++_UNSECURE_OBJS) $(LDLIBS) $(ZLIB_MERGE_LIBS) $(LDLIBSXX) $(LDLIBS_PROTOBUF) -lgpr -lgrpc_unsecure
4046
4206
  $(Q) ln -sf $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).so.1
4047
4207
  $(Q) ln -sf $(SHARED_PREFIX)grpc++_unsecure$(SHARED_VERSION).$(SHARED_EXT) $(LIBDIR)/$(CONFIG)/libgrpc++_unsecure$(SHARED_VERSION).so
4048
4208
  endif
@@ -36,4 +36,4 @@
36
36
 
37
37
  #include <grpc/grpc.h>
38
38
 
39
- const char *grpc_version_string(void) { return "1.0.0-pre2"; }
39
+ const char *grpc_version_string(void) { return "1.0.0"; }
@@ -61,7 +61,6 @@ module GRPC
61
61
  @call = call
62
62
  @marshal = marshal
63
63
  @op_notifier = nil # signals completion on clients
64
- @readq = Queue.new
65
64
  @unmarshal = unmarshal
66
65
  @metadata_received = metadata_received
67
66
  @reads_complete = false
@@ -81,8 +80,7 @@ module GRPC
81
80
  def run_on_client(requests, op_notifier, &blk)
82
81
  @op_notifier = op_notifier
83
82
  @enq_th = Thread.new { write_loop(requests) }
84
- @loop_th = start_read_loop
85
- each_queued_msg(&blk)
83
+ read_loop(&blk)
86
84
  end
87
85
 
88
86
  # Begins orchestration of the Bidi stream for a server generating replies.
@@ -97,8 +95,7 @@ module GRPC
97
95
  #
98
96
  # @param gen_each_reply [Proc] generates the BiDi stream replies.
99
97
  def run_on_server(gen_each_reply)
100
- replys = gen_each_reply.call(each_queued_msg)
101
- @loop_th = start_read_loop(is_client: false)
98
+ replys = gen_each_reply.call(read_loop(is_client: false))
102
99
  write_loop(replys, is_client: false)
103
100
  end
104
101
 
@@ -135,24 +132,6 @@ module GRPC
135
132
  batch_result
136
133
  end
137
134
 
138
- # each_queued_msg yields each message on this instances readq
139
- #
140
- # - messages are added to the readq by #read_loop
141
- # - iteration ends when the instance itself is added
142
- def each_queued_msg
143
- return enum_for(:each_queued_msg) unless block_given?
144
- count = 0
145
- loop do
146
- GRPC.logger.debug("each_queued_msg: waiting##{count}")
147
- count += 1
148
- req = @readq.pop
149
- GRPC.logger.debug("each_queued_msg: req = #{req}")
150
- fail req if req.is_a? StandardError
151
- break if req.equal?(END_OF_READS)
152
- yield req
153
- end
154
- end
155
-
156
135
  def write_loop(requests, is_client: true)
157
136
  GRPC.logger.debug('bidi-write-loop: starting')
158
137
  count = 0
@@ -190,47 +169,45 @@ module GRPC
190
169
  raise e
191
170
  end
192
171
 
193
- # starts the read loop
194
- def start_read_loop(is_client: true)
195
- Thread.new do
196
- GRPC.logger.debug('bidi-read-loop: starting')
197
- begin
198
- count = 0
199
- # queue the initial read before beginning the loop
200
- loop do
201
- GRPC.logger.debug("bidi-read-loop: #{count}")
202
- count += 1
203
- batch_result = read_using_run_batch
204
-
205
- # handle the next message
206
- if batch_result.message.nil?
207
- GRPC.logger.debug("bidi-read-loop: null batch #{batch_result}")
208
-
209
- if is_client
210
- batch_result = @call.run_batch(RECV_STATUS_ON_CLIENT => nil)
211
- @call.status = batch_result.status
212
- batch_result.check_status
213
- GRPC.logger.debug("bidi-read-loop: done status #{@call.status}")
214
- end
215
-
216
- @readq.push(END_OF_READS)
217
- GRPC.logger.debug('bidi-read-loop: done reading!')
218
- break
172
+ # Provides an enumerator that yields results of remote reads
173
+ def read_loop(is_client: true)
174
+ return enum_for(:read_loop,
175
+ is_client: is_client) unless block_given?
176
+ GRPC.logger.debug('bidi-read-loop: starting')
177
+ begin
178
+ count = 0
179
+ # queue the initial read before beginning the loop
180
+ loop do
181
+ GRPC.logger.debug("bidi-read-loop: #{count}")
182
+ count += 1
183
+ batch_result = read_using_run_batch
184
+
185
+ # handle the next message
186
+ if batch_result.message.nil?
187
+ GRPC.logger.debug("bidi-read-loop: null batch #{batch_result}")
188
+
189
+ if is_client
190
+ batch_result = @call.run_batch(RECV_STATUS_ON_CLIENT => nil)
191
+ @call.status = batch_result.status
192
+ batch_result.check_status
193
+ GRPC.logger.debug("bidi-read-loop: done status #{@call.status}")
219
194
  end
220
195
 
221
- # push the latest read onto the queue and continue reading
222
- res = @unmarshal.call(batch_result.message)
223
- @readq.push(res)
196
+ GRPC.logger.debug('bidi-read-loop: done reading!')
197
+ break
224
198
  end
225
- rescue StandardError => e
226
- GRPC.logger.warn('bidi: read-loop failed')
227
- GRPC.logger.warn(e)
228
- @readq.push(e) # let each_queued_msg terminate with this error
199
+
200
+ res = @unmarshal.call(batch_result.message)
201
+ yield res
229
202
  end
230
- GRPC.logger.debug('bidi-read-loop: finished')
231
- @reads_complete = true
232
- finished
203
+ rescue StandardError => e
204
+ GRPC.logger.warn('bidi: read-loop failed')
205
+ GRPC.logger.warn(e)
206
+ raise e
233
207
  end
208
+ GRPC.logger.debug('bidi-read-loop: finished')
209
+ @reads_complete = true
210
+ finished
234
211
  end
235
212
  end
236
213
  end
@@ -29,5 +29,5 @@
29
29
 
30
30
  # GRPC contains the General RPC module.
31
31
  module GRPC
32
- VERSION = '1.0.0.pre2'
32
+ VERSION = '1.0.0'
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grpc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - gRPC Authors
8
8
  autorequire:
9
9
  bindir: src/ruby/bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-protobuf
@@ -1177,9 +1177,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1177
1177
  version: 2.0.0
1178
1178
  required_rubygems_version: !ruby/object:Gem::Requirement
1179
1179
  requirements:
1180
- - - ">"
1180
+ - - ">="
1181
1181
  - !ruby/object:Gem::Version
1182
- version: 1.3.1
1182
+ version: '0'
1183
1183
  requirements: []
1184
1184
  rubyforge_project:
1185
1185
  rubygems_version: 2.5.1