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
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
Nicolas "Pixel" Noble
1ff52d5278
Guard headers tool.
2015-03-01 06:18:14 +01: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
Craig Tiller
8451e87ced
Extend timeouts for Travis 2x
2015-02-27 09:25:51 -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
Craig Tiller
73509a5d53
Better port picker
2015-02-26 17:43:49 -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
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
Julien Boeuf
9fff77e4f8
Addressing comments.
2015-02-24 16:50:35 -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
Nicolas Noble
65b0759653
Addressing a first batch of feedback.
2015-02-23 15:38:52 -08:00
Craig Tiller
74ae8f61d9
Merge pull request #710 from jboeuf/default_google_creds
...
Added support for default credentials.
2015-02-23 14:41:18 -08:00
Julien Boeuf
c66f2a816e
Addressing iniitial feedback.
...
- Renaming default credentials -> google default credentials.
- Various other things in cpp:
- Adding Cpp wrapping for JWT Tokens.
- Renaming ComposeCredentials -> CompositeCredentials.
2015-02-23 13:00:36 -08:00
Nicolas Noble
a7b8b69d23
Addressing security concerns.
...
-) 0x7f (Backspace) isn't a printable character.
-) use sizeof(var) instead of sizeof(type).
2015-02-23 10:44:34 -08:00
Julien Boeuf
cd9b1c850d
Added support for default credentials.
...
- Tested with new tool (print_default_creds_token) on:
- workstation for env var and well known place.
- GCE for compute engine default creds.
- I'd prefer the grpc_default_credentials_create() API to remain
synchronous even though there may be an async call for gce detection
on which we block.
2015-02-21 21:57:42 -08:00
Yang Gao
c5b9692e11
Merge pull request #641 from jboeuf/jwt_id_token
...
Implementing JWT credentials (a.k.a JWT ID Tokens).
2015-02-21 00:01:25 -08:00
Nicolas Noble
3a6fe1b2a7
Merge pull request #592 from ctiller/chex2
...
Fix TSAN reported error in fd_posix.c
2015-02-20 14:44:21 -08:00
Craig Tiller
c9a53f9568
Merge pull request #606 from yang-g/roots
...
remove prod_roots_certs.c
2015-02-20 10:11:08 -08:00
Craig Tiller
54f9a65f1e
32 bit compilation fixes for core
2015-02-19 21:41:20 -08:00
Julien Boeuf
25380de72d
Adding tool for generating JWTs on the command line.
2015-02-19 19:17:32 -08:00
Julien Boeuf
f47a5cb93d
Implementing JWT credentials (a.k.a JWT ID Tokens).
...
- Not tested end to end yet
2015-02-19 17:29:41 -08:00
Yang Gao
0d1e2f2ad9
remove prod_roots_certs.c since it is not used anywhere
2015-02-18 22:41:59 -08:00
Julien Boeuf
90bd7c4c4d
Fixing sprintf and a few other things.
2015-02-18 18:53:18 -08:00
Craig Tiller
0fcd53c701
Fix a TSAN reported error
...
We now pass down pointers to closures instead of (callback, arg) pair
elements separately. This allows us to store one word atomically, fixing
a race condition.
All call sites have been updated to the new API. No new allocations are
incurred. grpc_fd_state is deleted to avoid any temptation to ever add
anything there again.
2015-02-18 15:10:53 -08:00
Craig Tiller
9be83eec1d
Fix use-after-free.
...
Transport and channel have different lifetimes, but share a metadata
context.
Make the metadata context ref counted, and have transport take a ref.
2015-02-18 14:16:15 -08:00
Craig Tiller
efad8fadd3
Spam cleanup, test speedup
2015-02-18 13:59:46 -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
f74ec4ee43
Merge github.com:grpc/grpc into copyright
2015-02-18 08:30:14 -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
347b83c222
Merge github.com:grpc/grpc into copyright
...
Conflicts:
src/python/src/__init__.py
src/python/src/_adapter/__init__.py
src/python/src/_framework/__init__.py
src/python/src/_framework/base/__init__.py
src/python/src/_framework/base/packets/__init__.py
src/python/src/_framework/common/__init__.py
src/python/src/_framework/face/__init__.py
src/python/src/_framework/face/testing/__init__.py
src/python/src/_framework/foundation/__init__.py
src/python/src/_junkdrawer/__init__.py
2015-02-17 20:28:40 -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
5e276e88c4
Merge github.com:grpc/grpc into c++api
2015-02-17 13:33:24 -08:00
Craig Tiller
2d9c51242a
Add mixed shutdown/init test
2015-02-17 11:41:46 -08:00
Craig Tiller
35108f6527
Allow grpc_init to be called multiple times
2015-02-17 11:24:15 -08:00
Craig Tiller
2531299eba
Merge github.com:grpc/grpc into c++api
2015-02-17 10:44:41 -08:00
Craig Tiller
32223cf5e1
Fix fling test leaks
2015-02-17 10:01:29 -08:00
Craig Tiller
1f1b630fe7
Merge github.com:grpc/grpc into c++api
...
Conflicts:
Makefile
2015-02-17 07:33:19 -08:00
Craig Tiller
c2c792113e
Add copyrights to Python code
2015-02-16 12:00:01 -08:00