Commit Graph

11450 Commits

Author SHA1 Message Date
Mark D. Roth 4eec0041f5 Revert "Remove redundant includes from string.h and tmpfile.h" 2016-12-05 08:03:41 -08:00
Mark D. Roth adc3fbc0a3 Merge pull request #8922 from sreecha/slice_cleanup
Remove redundant includes from string.h and tmpfile.h
2016-12-05 07:43:40 -08:00
Mark D. Roth 746578ac9c Merge pull request #8851 from dgquintas/rename_gbench
Renamed google_benchmark submodule to benchmark
2016-12-05 07:43:17 -08:00
Jan Tattermusch 8e9a492ad9 Merge pull request #8828 from jtattermusch/csharp_call_flags_api
Add C# call flags API
2016-12-05 10:34:17 +01:00
Craig Tiller b35cfc76e2 Merge pull request #8913 from markdroth/security_handshaker2
Rewrite security handshaker to use generic handshaker API.
2016-12-02 22:34:00 -08:00
Craig Tiller ad158893de Merge pull request #8854 from dgquintas/backoff
Updated backoff to spec.
2016-12-02 22:33:37 -08:00
Craig Tiller 80c7e9200e Merge pull request #8939 from ctiller/fixit24
Fix use-after-free in resource quota
2016-12-02 19:48:10 -08:00
Masood Malekghassemi 4d7b0e135b Merge pull request #8920 from soltanmm-google/fracking-is-not-inherently-horrible-it-just-does-not-have-enough-oversight
Switch to command-arg for Python split-codegen
2016-12-02 18:59:55 -08:00
Craig Tiller ab5a499080 Fix use-after-free 2016-12-02 17:17:07 -08:00
Masood Malekghassemi 561dce4525 Switch to command-arg for Python split-codegen
Almost fixes #8753 (which still needs a test).
2016-12-02 15:32:15 -08:00
Mark D. Roth c50ee7aac2 Merge remote-tracking branch 'origin/security_handshaker1' into security_handshaker2 2016-12-02 22:30:13 +00:00
Mark D. Roth a0bb3742d9 Fix server_chttp2_test. 2016-12-02 22:27:26 +00:00
Mark D. Roth 0f4bbba826 Fix allocation bugs in server shutdown. 2016-12-02 22:16:03 +00:00
Craig Tiller 1747055e14 Merge pull request #8931 from ctiller/fixit20
Remove resource users from reclaimer lists when shutting down
2016-12-02 13:22:37 -08:00
Mark D. Roth f6a046e820 Fix race condition during handshake manager shutdown. 2016-12-02 13:15:42 -08:00
Craig Tiller 13b9a9a5f5 Remove resource users from reclaimer lists when shutting down
Otherwise, a null closure could be executed to reclaim, the reclaimation
finished edge would never be executed, and a future allocation will
stall forever.
2016-12-02 12:46:30 -08:00
Mark D. Roth a0bcfbbfe2 Fix Windows build problem. 2016-12-02 12:10:25 -08:00
Mark D. Roth 3e9ba86377 Merge branch 'security_handshaker1' into security_handshaker2 2016-12-02 11:01:40 -08:00
Mark D. Roth 8aa2f70f57 Code review changes. 2016-12-02 11:00:27 -08:00
Mark D. Roth 714038204a Use the same server code for both secure and insecure servers. 2016-12-02 10:51:39 -08:00
Mark D. Roth bd913a8637 Fix asan failures. 2016-12-02 16:47:35 +00:00
Jan Tattermusch 058f555b7e make CallFlags internal, expose WaitForReady 2016-12-02 17:09:46 +01:00
Jan Tattermusch 43416dac68 wire passing of C# CallFlags to C core 2016-12-02 16:53:05 +01:00
Jan Tattermusch 0faf80c348 add C# call flags API 2016-12-02 16:53:05 +01:00
Craig Tiller b79af5b542 Merge pull request #8775 from ctiller/hansel
Fix logic race in chttp2 write path
2016-12-01 17:30:43 -08:00
Sree Kuchibhotla f4b1bbfce8 Merge branch 'master' into slice_cleanup 2016-12-01 17:10:48 -08:00
kpayson64 94298fbb95 Merge pull request #8923 from kpayson64/php_unit_test_cleanup
PHP Unit test changes
2016-12-01 10:57:20 -08:00
kpayson64 d0c27df6e4 Merge pull request #8707 from kpayson64/upstream_changes
Add configurable exit grace periods and shutdown handlers
2016-12-01 10:47:30 -08:00
Ken Payson 02d2807b30 Fixes 2 issues:
1. In the State change test, 123->0 will hit a c-core GPR_ASSERT if
debugging is enabled because 123 doesn't map to a state that can
be printed.
2. In the Server test, 8888 is sometimes unavailable, so we just use
a wildcard port.
2016-12-01 09:57:30 -08:00
Ken Payson 3045a379aa Add configurable exit grace periods and shutdown handlers
The server cleanup method is untested.

The join() function that exposes it is only called by the internals of threading.py, and we don't hold a reference to the server thread to explicitly join() it, and I'm not sure we should add a reference just for this purpose.

Moreover, the threading.py only calls join(None), the code path in question isn't even exercised by the internals of threading.py. Its just there to make sure we properly follow the join(timeout) semantics.
2016-12-01 09:38:50 -08:00
Mark D. Roth a561785052 clang-format 2016-12-01 08:48:22 -08:00
Mark D. Roth 9b3f1b7ab1 Fix httpcli cleanup code. 2016-12-01 08:44:44 -08:00
Mark D. Roth 412e6acaaa Merge branch 'security_handshaker1' into security_handshaker2 2016-12-01 08:24:45 -08:00
Mark D. Roth 53bd69330c Code review changes. 2016-12-01 08:00:38 -08:00
Sree Kuchibhotla 6c870f6c62 Remove redundant includes 2016-12-01 01:52:17 -08:00
Sree Kuchibhotla 2388b95984 Remove redundant includes 2016-12-01 01:44:24 -08:00
Jan Tattermusch d17c7c955e Merge pull request #8884 from jtattermusch/csharp_cleanup_nuspec
C# cleanup package building
2016-12-01 08:50:50 +01:00
Paul Marks b1c4e619de Merge pull request #8849 from pmarks-net/master
Fix a memory leak in grpc_udp_server_add_port()
2016-11-30 20:01:54 -08:00
Muxi Yan 9832b9b2de Merge pull request #8902 from muxi/fix-cocoapods-fail
Capture name change of CocoaPods generated target
2016-11-30 15:37:04 -08:00
Mark D. Roth 0d7b043d34 Merge remote-tracking branch 'upstream/master' into security_handshaker1 2016-11-30 13:51:01 -08:00
Muxi Yan a91298ca62 Update post_install condition and comments 2016-11-30 13:33:55 -08:00
Craig Tiller 4b064060f7 Merge github.com:grpc/grpc into hansel 2016-11-30 13:30:01 -08:00
Mark D. Roth 86a893d52e Merge remote-tracking branch 'upstream/master' into security_handshaker2 2016-11-30 13:23:34 -08:00
David G. Quintas 65832fbdf0 Merge pull request #8880 from dgquintas/json_localhost_carnage
Propagate (some) signals to subprocesses in json_run_localhost
2016-11-30 13:19:56 -08:00
Mark D. Roth f1926c048a Add a TODO comment. 2016-11-30 13:18:10 -08:00
Craig Tiller 6facd26db3 Merge pull request #8903 from ctiller/tcp_shutdown
Fix TCP shutdown path on Windows
2016-11-30 13:00:03 -08:00
Craig Tiller 9fbb3387d0 Review feedback 2016-11-30 12:58:23 -08:00
Mark D. Roth e6e1c9e7a1 Fix link problem for insecure target. 2016-11-30 12:33:21 -08:00
Craig Tiller 296984b46c Break infinite connection retry loop
Previously, we'd keep retrying a connection until the channel closed.
With this change, we only retry connecting *if there's a watcher on the
subchannel connection state*. This ultimately means that if the
lb_policy doesn't care if the subchannel connects, it'll stop trying.
2016-11-30 12:25:02 -08:00
Mark D. Roth b62f364d0a Fix shutdown semantics for client and server code. 2016-11-30 11:41:25 -08:00