Commit Graph

81 Commits

Author SHA1 Message Date
Craig Tiller c9f660daf8 Add a test that bad hostnames fail 2015-03-03 11:01:48 -08:00
Nicolas "Pixel" Noble 1ff52d5278 Guard headers tool. 2015-03-01 06:18:14 +01:00
Yang Gao 0e32857bfd Merge pull request #784 from ctiller/timeout
Introduce slowdown factor for unit test deadlines
2015-02-26 09:30:36 -08:00
Craig Tiller e2d795a27b Fix max_concurrent_streams test 2015-02-25 15:00:21 -08:00
Craig Tiller deb49dd1aa Strip port in peer name check
This string comes from an authority field, which is allowed to contain a
':' port (see https://tools.ietf.org/html/rfc3986#section-3.2).

We need to strip it before performing host name verification.
2015-02-25 12:17:24 -08: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
Julien Boeuf 597a4f2273 Verifying the peer name on the X509 Certs correctly.
- The SANs take precedence over the CN.
- The CN is only checked if there are no SANs.
- Fixing the tests as the test cert did not list *.test.google.com in
  the SANs. Will fix the test cert another time...
2015-02-23 16:41:26 -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 7bd5ab1055 Merge github.com:grpc/grpc into c++api
Conflicts:
	src/core/surface/server.c
2015-02-17 22:29:04 -08:00
Craig Tiller aea2fc053d Fix shutdown semantics.
Document what they should be, ensure they're triggered, and fix what was broken.
2015-02-17 16:54:53 -08:00
Craig Tiller 869a8700f8 Merge github.com:grpc/grpc into c++api 2015-02-12 14:58:38 -08:00
murgatroid99 a8c21e8ecf Added useful behavior for empty batch 2015-02-12 13:55:53 -08:00
Craig Tiller 94f87588fa Fix up C tests 2015-02-11 23:00:59 -08:00
Craig Tiller d9dd8fee04 Merge github.com:grpc/grpc into c++api 2015-02-11 18:19:24 -08:00
Craig Tiller 8e8fd89faf Allow two completion queues on request call
One for the new rpc notification, the other is bound to the new call.
This will make async c++ soooo much easier.
2015-02-10 17:02:08 -08:00
Julien Boeuf 54b21921f9 Adding call host (:authority header) check in the secure channel.
- Fixes #405.
- This change is not tested as it should (only end to end and no
  negative testing). Will do better when we have testing framework
  for filters.
2015-02-10 15:12:13 -08:00
Craig Tiller e801eb3189 Fix some tests 2015-02-10 14:01:14 -08:00
Craig Tiller 8b976d0c24 Fixes 2015-02-05 21:41:23 -08:00
Craig Tiller 3054756462 Fix in-flight cancellations 2015-02-05 17:04:51 -08:00
Craig Tiller 16c5032fdb Add a failing test 2015-02-05 16:35:59 -08:00
Craig Tiller 2832cb0627 Remove accidentally added file 2015-02-05 16:03:43 -08:00
Craig Tiller fee91b49ff Converted some cancellation tests 2015-02-05 16:03:13 -08:00
Craig Tiller c58330a244 Convert simple_delayed_request 2015-02-05 13:42:46 -08:00
Craig Tiller cff2d15f94 Convert more tests (and re-enable some disabled ones) 2015-02-05 13:22:49 -08:00
Craig Tiller c9903bcf29 Convert request_response_with_trailing_metadata_and_payload 2015-02-05 13:11:02 -08:00
Craig Tiller bea3840476 Convert request_response_with_binary_metadata_and_payload 2015-02-05 13:01:33 -08:00
Craig Tiller 16c3967183 Convert request_response_with_metadata_and_payload 2015-02-05 12:57:08 -08:00
Craig Tiller 26aeb1f0bb Remove accidentally added file 2015-02-05 12:41:03 -08:00
Craig Tiller 4f9727326e Fix memory usage 2015-02-05 12:40:20 -08:00
Craig Tiller 24fc2c4c5d Convert request_response_with_payload 2015-02-04 13:01:16 -08:00
Craig Tiller a6347ea3e2 Remove invalid checks 2015-02-04 12:55:51 -08:00
Craig Tiller 166e25002c First test passes 2015-02-03 20:14:41 -08:00
Craig Tiller ea61b07800 Updated the first test (which fails) 2015-02-03 19:19:27 -08:00
Craig Tiller 5a34d452f6 WIP simple_request 2015-02-03 14:29:22 -08:00
Craig Tiller 2c189e393c Fork tests into legacy/non-legacy 2015-02-03 13:56:55 -08:00
Craig Tiller 40d2a4307b Merge branch 'async-api-prep' of github.com:ctiller/grpc into async-api 2015-02-02 15:29:14 -08:00
Craig Tiller 701c5843bc Fix tests to be a bit more sane 2015-02-02 14:03:06 -08:00
Craig Tiller a7cac78516 Prepare for the new batch call API.
Rename all core API functions that are on their way to deprecation with
an _old tag across all wrappings.
2015-02-02 10:16:30 -08:00
Craig Tiller 1e0d4c43d1 Rename & semantic fixup progress 2015-01-30 16:17:29 -08:00
Craig Tiller 44c02738ed Merge github.com:google/grpc into async-api
Conflicts:
	test/core/echo/echo_test.c
2015-01-29 21:01:47 -08:00
Nicolas "Pixel" Noble 213ed91850 Re-enabling errors on warning, disabling unused parameter warning, and fixing all subsequent errors. 2015-01-30 02:11:35 +01:00
Craig Tiller cce17ac033 First compiling version of the new C api. 2015-01-27 13:54:14 -08:00
Yang Gao 3ed874c861 sync up with master 2015-01-27 11:39:14 -08:00
Yang Gao 5fd0d29dfe run clang-format 2015-01-26 00:19:48 -08:00
Craig Tiller 7da8ef14c1 Add missing include 2015-01-23 15:07:22 -08:00
Craig Tiller 2be952ce28 Remove use of sprintf 2015-01-23 15:05:30 -08:00
Craig Tiller cf7bd708cf Remove use of sprintf 2015-01-23 15:04:53 -08:00
Craig Tiller 724b7c693a clang-format 2015-01-20 22:44:10 -08:00
Craig Tiller 8379a06f8d Merge branch 'new_invoke_api' of github.com:google/grpc into update-api
Conflicts:
	src/cpp/client/channel.cc
	src/cpp/stream/stream_context.cc
	src/cpp/stream/stream_context.h
	src/php/ext/grpc/call.c
	test/core/end2end/tests/max_concurrent_streams.c
2015-01-20 22:43:32 -08:00