Commit Graph

46 Commits

Author SHA1 Message Date
Craig Tiller 897e4fe2ad Update copyrights 2015-12-22 15:03:40 -08:00
Craig Tiller af745d824e Fix build 2015-12-14 20:49:37 -08:00
Nicolas "Pixel" Noble c27a99b099 Allows http(s)cli_test's server.py override. 2015-12-15 02:46:16 +01:00
Craig Tiller da0cf3cdfb Fix off by one bug 2015-12-13 07:54:32 -08:00
Craig Tiller ab0ea829ac ASAN, Sanity fixes 2015-12-12 18:53:08 -08:00
Craig Tiller eb597e4513 Hit remaining corner cases in httpcli/parser.c 2015-12-11 11:52:22 -08:00
Craig Tiller ed2164db57 Fixes, review feedback 2015-12-08 22:03:36 -08:00
Craig Tiller cc0535d25e Add a test of httpcli over ssl 2015-12-08 15:14:47 -08:00
Craig Tiller 71a0f9d3b0 Fix clang-format script 2015-09-28 17:22:01 -07:00
Craig Tiller 7f0273fd02 Merge github.com:grpc/grpc into shindig 2015-09-24 13:36:12 -07:00
Nathaniel Manista ae4fbcd643 Use "#!/usr/bin/env python2.7" only in utilities 2015-09-23 16:29:44 +00:00
Craig Tiller b8b1a462e5 Finish cleanup 2015-09-22 12:50:03 -07:00
Craig Tiller a82950e683 clang-format all core files 2015-09-22 12:33:20 -07:00
Craig Tiller e7db29f8c7 Move argument passing to start of list 2015-09-22 10:55:42 -07:00
Craig Tiller f5768a6765 Rename init 2015-09-22 10:54:34 -07:00
Craig Tiller 098047b53a Rename run 2015-09-22 10:53:14 -07:00
Craig Tiller 1be70ccdb8 Move arguments to the start of lists 2015-09-22 10:45:28 -07:00
Craig Tiller 45724b35e4 indent pass to get logical source lines on one physical line 2015-09-22 10:42:19 -07:00
Craig Tiller d9ccbbf6b9 Rename call_list to closure_list 2015-09-22 09:30:00 -07:00
Craig Tiller dfff1b8126 Call list progress 2015-09-21 14:39:57 -07:00
Craig Tiller 32ca48ce0b Core compiles with -Wsign-conversion 2015-09-10 11:47:15 -07:00
Craig Tiller 128f4a9cfe Merge github.com:grpc/grpc into y12kdm3 2015-08-18 12:51:05 -07:00
Craig Tiller d6c98df792 clang-format all source 2015-08-18 09:33:44 -07:00
Craig Tiller d067c263b2 Merge github.com:grpc/grpc into y12kdm3
Conflicts:
	src/core/security/google_default_credentials.c
	test/core/security/verify_jwt.c
2015-08-12 12:00:36 -07:00
Craig Tiller 4c06b820e0 Add a test of non-blocking API behavior
... also fix things that were broken :)
2015-08-06 08:41:31 -07:00
Craig Tiller 0700d8b118 Merge github.com:grpc/grpc into kinetic-lopsided-poetry 2015-08-05 15:28:41 -07:00
Craig Tiller f53d9c8d0d Testing port server
run_tests.py will start a server (if it's not running, or if the running
port server mismatches the 'current' one) that serves ports to use for
tests. The server is left running after run_tests.py finishes, so that
in environments such as Mac and Windows where tests run unshielded from
each other, we don't start jumping on already used ports.
2015-08-04 14:19:43 -07:00
Craig Tiller 5ddbb9d405 Allow specific pollers to be woken
Currently, if two threads call grpc_completion_queue_pluck on the same
completion queue for different tags, there is a 50% chance that we
deliver the completion wakeup to the wrong poller - forcing the correct
poller to wait until its polling times out before it can return an event
up to the application.

This change tweaks our polling interfaces so that we can indeed wake a
specific poller.

Nothing has been performance tuned yet. It's definitely sub-optimal in a
number of places. Wakeup file-descriptors should be recycled. We should
have a path that avoids calling poll() followed by epoll(). We can
probably live without it right at the second though.

This code will fail on Windows at least (I'll do that port when I'm in the office and have a Windows
machine).
2015-07-29 15:58:11 -07:00
Craig Tiller 58bbc864ba Updating wrapped languages to new time functions 2015-07-13 09:51:17 -07:00
Craig Tiller f1bff01631 clang-format changed files 2015-07-06 11:20:50 -07:00
Craig Tiller f3756c1e0d Introduce multiple clocks to GPR 2015-07-01 17:21:01 -07:00
Craig Tiller 9a57633233 clang-format affected files 2015-06-17 10:21:49 -07:00
Craig Tiller f39f2d6dde Merge github.com:grpc/grpc into we-dont-need-no-backup
Conflicts:
	test/core/bad_client/bad_client.c
	test/core/httpcli/httpcli_test.c
2015-06-06 14:43:06 -07:00
Craig Tiller b5075e3754 Add working tests for httpcli 2015-06-05 13:00:46 -07:00
Craig Tiller 06bac34df0 Properly integrate credentials metadata delivery 2015-06-01 12:55:57 -07:00
Craig Tiller 49ff23f32d Rephrase integration for httpcli 2015-06-01 11:32:04 -07:00
Craig Tiller 8b5276c02e Merge github.com:grpc/grpc into we-dont-need-no-backup
Conflicts:
	src/core/surface/call.c
	test/core/end2end/dualstack_socket_test.c
	test/core/end2end/tests/early_server_shutdown_finishes_inflight_calls.c
	test/core/end2end/tests/early_server_shutdown_finishes_tags.c
	test/core/end2end/tests/graceful_server_shutdown.c
	test/core/end2end/tests/invoke_large_request.c
	test/core/end2end/tests/max_concurrent_streams.c
	test/core/end2end/tests/max_message_length.c
	test/core/end2end/tests/request_response_with_binary_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_metadata_and_payload.c
	test/core/end2end/tests/request_response_with_payload.c
	test/core/end2end/tests/request_response_with_payload_and_call_creds.c
	test/core/end2end/tests/request_response_with_trailing_metadata_and_payload.c
	test/core/end2end/tests/request_with_large_metadata.c
	test/core/end2end/tests/request_with_payload.c
	test/core/httpcli/httpcli_test.c
	tools/run_tests/run_tests.py
2015-05-24 15:58:14 -07:00
Craig Tiller 356961916d Remove all uses of __FUNCTION__ 2015-05-24 15:00:37 -07:00
Craig Tiller b1fa1d5577 Initial refactoring of a few tests 2015-05-11 10:27:53 -07:00
Craig Tiller 8ad8a41a84 Introduce slowdown factor for unit test deadlines
Dramatically lowers (eliminates maybe?) false negatives from ?SAN runs.
2015-02-25 08:36:40 -08:00
Craig Tiller 190d360def Add missing new-lines at end of file 2015-02-18 09:23:38 -08:00
Craig Tiller 0605995e55 Update copyright to 2015 2015-02-18 08:34:56 -08:00
Craig Tiller 32946d37e0 () --> (void) 2015-01-15 11:37:30 -08:00
Craig Tiller b5dcec5a2e clang-format codebase 2015-01-13 11:13:42 -08:00
ctiller 18b49ab914 Introducing iomgr.
Move eventmanager and platform dependent endpoint functionality into a single
library called 'iomgr'.

This is primarily to prepare for a Windows port - where posix socket semantics
lead to poor quality code.

Mostly this is a code movement CL, with some small changes to help prepare the
way for porting:

- em style fd objects can only be held internally in iomgr, and own their memory
- added grpc_iomgr_create_endpoint_pair() to accomodate the common pattern of
creating a tcp endpoint from the output of socketpair - this will help keep
our tests portable
- separated em alarm interface into a separate file, as this part of event
manager is needed higher up the stack
- made the eventmanager bits a true singleton, simplifying API's across the
stack as there's no longer a reason to carry a pointer there.

Initial design document is here:
https://docs.google.com/document/d/1VmafcHvvrP5kwtQkz84R5yXF7u7fW-9Pn0bkSUQHDt8/edit?disco=AAAAARNByxg
	Change on 2014/12/09 by ctiller <ctiller@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=81716456
2014-12-09 16:20:55 -08:00
Nicolas Noble b7ebd3b8c6 Initial import. 2014-11-26 16:33:03 -08:00