Commit Graph

107 Commits

Author SHA1 Message Date
Craig Tiller ca75796811 Fling test uses grpc_call_invoke 2015-01-14 16:17:05 -08:00
Craig Tiller 240d02c076 Echo test uses grpc_call_invoke 2015-01-14 16:16:52 -08:00
Craig Tiller 92eb29a7b7 Remove unused private field 2015-01-14 14:12:17 -08:00
Craig Tiller 09b637538f clang-format 2015-01-14 13:02:09 -08:00
Craig Tiller 465e2e11d1 Merge github.com:google/grpc into api 2015-01-14 13:01:46 -08:00
Yang Gao 5680ff4687 Run clang-format-all.sh 2015-01-14 12:14:21 -08:00
Craig Tiller 14e60e9f8b Use C signal handling in C++ end2end 2015-01-14 11:21:21 -08:00
Craig Tiller e1e2475b69 Unify signal handling in C 2015-01-14 11:21:00 -08:00
Craig Tiller 6d43445a1a Merge github.com:google/grpc into api 2015-01-14 11:19:09 -08:00
Craig Tiller dd330d6d68 Merge pull request #24 from nicolasnoble/win32
Various win32 fixes.
2015-01-13 21:13:44 -08:00
Nicolas "Pixel" Noble 80d68c09c4 Fixing test_config.c
Now all the gpr tests build and run under win32.
2015-01-13 20:14:43 -08:00
Nicolas "Pixel" Noble 27be1a2d3c Removing a few more traces of libevent. 2015-01-14 04:55:57 +01:00
Craig Tiller 0a00a08c53 Use C signal handling in C++ end2end 2015-01-13 17:26:46 -08:00
Craig Tiller 5c35008ea1 Unify signal handling in C 2015-01-13 17:26:27 -08:00
Craig Tiller bf444937c6 Fix ordering problem leading to flaky test 2015-01-13 17:13:08 -08:00
Craig Tiller fc84e7b28e Fix tag matching bug 2015-01-13 16:49:44 -08:00
Craig Tiller 9c0307bd4f Update test to grpc_call_invoke 2015-01-13 16:49:24 -08:00
Craig Tiller 97f7fca5ff Remove calls to grpc_call_start_invoke 2015-01-13 16:36:31 -08:00
Craig Tiller cbbac9b10d Compile fix 2015-01-13 16:13:43 -08:00
Craig Tiller 40fc7a6632 clang-format codebase 2015-01-13 16:11:58 -08:00
Craig Tiller 375605b65f Merge github.com:google/grpc into api 2015-01-13 16:11:30 -08:00
Craig Tiller 80fa15c151 Moving prototype from Google to GitHub
I'd started some prototyping work on this change before the move to
GitHub; this change restores things.
2015-01-13 16:10:49 -08:00
Craig Tiller 21b19a552c Fix formatting 2015-01-13 12:39:32 -08:00
Craig Tiller 1ee7cb0c0b Merge github.com:google/grpc into format 2015-01-13 12:39:00 -08:00
Craig Tiller bf2659f0b6 Fix qps test.
This was failing to compile.
2015-01-13 12:27:06 -08:00
Craig Tiller 856e372c04 Merge github.com:google/grpc into testcpp 2015-01-13 12:20:13 -08:00
vpai 92fe70e983 Added new results to report resource usage and QPS, along with new proto support for this
and also to turn the client into a server that can be controlled remotely (client part
not implemented yet)
	Change on 2015/01/13 by vpai <vpai@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83863541
2015-01-13 11:40:07 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
Craig Tiller 770f60a475 Merge github.com:google/grpc into testcpp 2015-01-12 17:44:43 -08:00
nnoble 5f2ecb355d Splitting grpc_test_util into gpr_test_util.
Change on 2015/01/12 by nnoble <nnoble@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83801564
2015-01-12 17:36:57 -08:00
ctiller 570d1f4425 Return bound port number from grpc_server_add_http2_port.
Allows tests to bind to port 0 and still have clients connect to them.
	Change on 2015/01/12 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83800669
2015-01-12 17:36:57 -08:00
Craig Tiller de990f9155 Initialize gtest correctly 2015-01-12 17:07:23 -08:00
Craig Tiller b2a42f3271 Make this file compile 2015-01-12 16:41:56 -08:00
Craig Tiller 9608f0f212 Make this file compile 2015-01-12 16:41:41 -08:00
Craig Tiller 35e3971e89 Make this file compile 2015-01-12 16:41:24 -08:00
Craig Tiller edd10d2596 Make this file usable from C++ 2015-01-12 16:40:51 -08:00
hongyu 99e317a8f8 grpc census hash_table test coverage improvements.
Change on 2015/01/12 by hongyu <hongyu@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83786701
2015-01-12 14:11:52 -08:00
yangg 0617057a39 Make interop server buildable on opensource build.
Change on 2015/01/12 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83783816
2015-01-12 14:09:03 -08:00
ctiller 00297df63b Ensure flow control callbacks happen outside the transport lock.
Split encoding into two phases: a collection phase to decide on what is allowed
(by flow control) to be sent, and a framing phase when the data is actually
sent. Perform the second phase outside of the transport mutex (but serially,
guarded by t->writing) and make flow control callbacks during that phase.

This will allow us to make further transport level calls in response to flow
control callbacks, and will be needed by the forthcoming async api for C++.
	Change on 2015/01/12 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83774409
2015-01-12 14:03:28 -08:00
yangg 1b151096d1 Add impl subdirectory under public and move headers that need to be installed
to it.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83640373
2015-01-12 11:22:02 -08:00
ctiller 0cd69562fd Allow logging mechanism to be overridden by applications.
This necessitated the removal of gpr_vlog to keep a clean interface.
	Change on 2015/01/09 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634996
2015-01-12 11:22:02 -08:00
yangg 4105e2b86c Add ServiceAccount Credentials wrapping and handle credentials creation
failure.
	Change on 2015/01/09 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83634736
2015-01-12 11:22:01 -08:00
hongyu 440d3d8198 Grpc census: v0 trace_printf() implementation in C.
Change on 2015/01/09 by hongyu <hongyu@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83626942
2015-01-12 11:22:01 -08:00
Nicolas Noble 362b9dcfc9 Merge github.com:google/grpc 2015-01-09 18:05:07 -08:00
ctiller 8bf337bedf Fix test under msan
Change on 2015/01/09 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83609353
2015-01-09 17:55:21 -08:00
yangg 1456d15221 Add a test to export two TestService on the same server, only with different
package names. Make sure they work as intended.

This is based on []
	Change on 2015/01/08 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83558743
2015-01-09 17:54:03 -08:00
hongyu 24200d3cbc C implementation of Census trace store and stats store for grpc C lib.
Change on 2015/01/08 by hongyu <hongyu@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83556470
2015-01-09 17:52:43 -08:00
chenw 6edb547c99 Enable streaming test case for gRPC client in GCE.
Change on 2015/01/08 by chenw <chenw@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83549959
2015-01-09 17:50:09 -08:00
ctiller 58393c20bc Remove libevent.
Fixed any exposed bugs across the stack.

Add a poll() based implementation. Heavily leverages pollset infrastructure to allow small polls to be the norm. Exposes a mechanism to plug in epoll/kqueue for platforms where we have them.

Simplify iomgr callbacks to return one bit of success or failure (instead of the multi valued result that was mostly unused previously). This will ease the burden on new implementations, and the previous system provided no real value anyway.

Removed timeouts on endpoint read/write routines. This simplifies porting burden by providing a more orthogonal interface, and the functionality can always be replicated when desired by using an alarm combined with endpoint_shutdown. I'm fairly certain we ended up with this interface because it was convenient to do from libevent.

Things that need attention still:
- adding an fd to a pollset is O(n^2) - but this is probably ok given that we'll not
use this for multipolling once platform specific implementations are added.
- we rely on the backup poller too often - especially for SSL handshakes and for client
connection establishment we should have a better mechanism ([] []
- Linux needs to use epoll for multiple fds, FreeBSD variants (including
Darwin) need to use kqueue. ([] []
- Linux needs to use eventfd for poll kicking. ([]
	Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83461069
2015-01-09 17:27:32 -08:00
ctiller e4b409364e Add a --forever flag, to continuously run tests as things change.
Change on 2015/01/07 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=83451760
2015-01-09 17:23:18 -08:00