Commit Graph

434 Commits

Author SHA1 Message Date
jboeuf 3de87ee4a9 Merge pull request #933 from ctiller/bugscrub2
A couple of fixes + a test for client side authentication of hostnames
2015-03-03 16:10:17 -08:00
Craig Tiller c82c36b400 Merge pull request #920 from vjpai/async-probs
Solving crashes in async tests
2015-03-03 13:12:31 -08:00
Craig Tiller 93f80f001c Formatting 2015-03-03 13:08:27 -08:00
Craig Tiller c9f660daf8 Add a test that bad hostnames fail 2015-03-03 11:01:48 -08:00
Vijay Pai acf6f318fc Better use of threads, avoid thread safety issues on destructor with
a proper join.

Also had been misusing EXPECT_EQ, as well as actually having an invalid
expectation on the ok field. Now it should be sane.
2015-03-02 15:13:39 -08:00
Nicolas Noble 961141002a Merge pull request #912 from ctiller/disconnect
Deflake fling_test
2015-03-02 13:54:14 -08:00
Craig Tiller 1a138c34ed Dont add new requests when shutting down 2015-03-02 18:01:58 +00:00
Craig Tiller 479f2b25fb Speed up test, reduce flakiness 2015-03-02 17:29:33 +00:00
Nathaniel Manista a60a77b63f Update Python codegen to early_adopter interface
With this change the Python code generated by the Python code generator
uses the grpc.early_adopter package and not the grpc.framework.face
package.
2015-03-02 08:30:49 +00:00
Nicolas "Pixel" Noble 1ff52d5278 Guard headers tool. 2015-03-01 06:18:14 +01:00
Nicolas Noble 0c84e3c4e6 Merge pull request #886 from ctiller/asan2
Omit some tests, speed up others, prepare for ASAN
2015-02-28 10:17:55 -08:00
vjpai 4e1e1bc28e Revert "Use typedefs to avoid triply-nested function templates"
This reverts commit 45b0bc4bec.

This revert is being done because the compilers on Travis don't
understand the C++11 template/using syntax.
2015-02-27 23:47:12 -08:00
vjpai 45b0bc4bec Use typedefs to avoid triply-nested function templates 2015-02-27 16:54:17 -08:00
Craig Tiller f5065c5b65 Enable asan for C core
Also speed up a test, and disable some rarely touched but long running tests
2015-02-27 16:17:39 -08:00
vjpai 79b3e49d0e Merge remote-tracking branch 'upstream/master' 2015-02-27 11:34:37 -08:00
Masood Malekghassemi 6e0b280389 Merge pull request #855 from nathanielmanistaatgoogle/python-test-port
Drop fixed port from python_plugin_test
2015-02-27 10:56:25 -08:00
Craig Tiller 3486f32686 Fix comment 2015-02-27 09:47:59 -08:00
vjpai 5b39f9a9fb refresh -> Reset 2015-02-27 09:33:00 -08:00
vjpai 6e2e64a8b4 Stop abusing operator() overloading 2015-02-27 09:28:28 -08:00
Craig Tiller 8451e87ced Extend timeouts for Travis 2x 2015-02-27 09:25:51 -08:00
vjpai 9440a14558 Move std::bind call out of main loop, change constructor appropriately 2015-02-27 09:19:09 -08:00
Craig Tiller f6901be8cd Allow machine and build type tuning of slowdown 2015-02-27 09:12:58 -08:00
Craig Tiller 7b5eb7193c Increment 'try' variable
To ensure that we actually probe different ports
2015-02-27 07:52:09 -08:00
vjpai cd801c8531 <:: -> < :: 2015-02-27 07:21:31 -08:00
vjpai 3c11066217 override->GRPC_OVERRIDE 2015-02-27 07:17:16 -08:00
vjpai 1b47b12895 Merge remote-tracking branch 'upstream/master' 2015-02-26 23:16:25 -08:00
Vijay Pai 64ac47f389 clang-format all these files 2015-02-26 17:59:51 -08:00
Craig Tiller 4795a3c71b Merge branch 'travis' of github.com:nicolasnoble/grpc into travis-c++ 2015-02-26 17:45:16 -08:00
Craig Tiller 73509a5d53 Better port picker 2015-02-26 17:43:49 -08:00
Nathaniel Manista 7b7aa625f6 Merge pull request #841 from soltanmm/py-update
Python code generator fixes.
2015-02-26 17:23:10 -08:00
vjpai 56c5129629 Rename Async methods from generator to avoid naming conflicts to
bind and other functions
2015-02-26 17:01:35 -08:00
Nathaniel Manista 732cf09a93 Drop fixed port from python_plugin_test
There may be some aspect of mortal sin in the way that context
management is now done in this test.
2015-02-27 00:47:38 +00:00
vjpai dea740f329 New multithreaded async C++ tests. The server is architected the way
that it should be with multiple threads waiting on a single
completion queue.
The client currently uses a separate completion
queue per-thread, as trying to do a single unified queue was leading
to crashes for me. I need to figure that out.
2015-02-26 16:35:35 -08:00
Craig Tiller cf133f41f8 Make it possible to compile with gcc4.6 2015-02-26 14:27:05 -08:00
Masood Malekghassemi 40e8cbd1ee Fix bugs in Python code generator
Fixes module path finding in the Python code generator and the signatures
of generated servicer methods.
2015-02-26 14:21:21 -08: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
David Klempner c33731aea6 Merge pull request #822 from ctiller/hard
Fix max_concurrent_streams test
2015-02-26 09:29:24 -08:00
Craig Tiller e2d795a27b Fix max_concurrent_streams test 2015-02-25 15:00:21 -08:00
David Klempner 57c0061d78 Deflake dualstack socket test
The test currently allocates a single port and reuses it through the
test. Given the timeouts in this test this leaves substantial race
windows where other processes on the same machine could steal the port
between subcases.

Instead, as a simple hack, allocate a new port before each test.
2015-02-25 13:37:12 -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
Nathaniel Manista afae27cf5e Merge pull request #739 from soltanmm/py-update
Updated Python protoc plugin and Python plugin testing.
2015-02-25 09:19:33 -08:00
Craig Tiller c1f1162787 Drastic speed up 2015-02-25 09:09:59 -08:00
Craig Tiller 4b5c4dbbb8 Drastic speed up 2015-02-25 08:51:18 -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
Craig Tiller 36ccead403 Merge pull request #735 from jboeuf/fix_ssl_san
Verifying the peer name on the X509 Certs correctly.
2015-02-24 21:11:26 -08:00
Masood Malekghassemi 59d9ff4d9f Updated Python protoc plugin testing. 2015-02-24 19:11:08 -08:00
Julien Boeuf 9fff77e4f8 Addressing comments. 2015-02-24 16:50:35 -08:00
Craig Tiller b9d91eb454 Merge github.com:google/grpc into deprecate-c++
Conflicts:
	test/cpp/end2end/async_end2end_test.cc
	test/cpp/end2end/end2end_test.cc
2015-02-23 17:13:40 -08:00
Yang Gao 0b9dfcf02a Merge pull request #725 from ctiller/unique
Move to unique_ptr for all GRPC returned objects
2015-02-23 17:02:47 -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