Граф коммитов

226 Коммитов

Автор SHA1 Сообщение Дата
Qi Zhao 3efe7aef96 Merge pull request #713 from menghanl/split_authenticator_and_credentials
[API revision] Separate TransportAuthenticator and PerRPCCredentials
2016-06-09 14:57:55 -07:00
Menghan Li 59486d9c17 Rename TransportAuthenticator to TransportCredentials 2016-06-08 11:19:25 -07:00
Menghan Li 5d7ad14de4 Rename isGrpcContentType to validContentType 2016-06-07 17:46:06 -07:00
Menghan Li 7ef3c44f78 Move isGrpcContentType to http_util.go and fix processHeaderField 2016-06-07 14:29:37 -07:00
Menghan Li 9391d1a36d Ignore plus and semicolon and anything following in Content-Type 2016-06-07 14:19:29 -07:00
Menghan Li 3ffbd8e030 Rename Credentials to PerRPCCredentials 2016-06-06 17:28:10 -07:00
Menghan Li 926d2eddee Remove comment 2016-06-06 16:38:31 -07:00
Menghan Li f0feaea314 Should be only one TransportAuthenticator 2016-06-06 16:35:41 -07:00
Menghan Li 6404c49192 Make TransportAuthenticator not embed Credentials 2016-06-06 16:24:46 -07:00
iamqizhao e4b9b7f606 Fix the Timeout comments 2016-06-06 12:29:41 -07:00
iamqizhao 404e9b67de dial time out 2016-06-06 12:08:11 -07:00
iamqizhao aa08f14740 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-06-01 18:18:43 -07:00
Qi Zhao aecdccadd2 Merge pull request #683 from mwitkow/feature/propagate-authority
make :authority propagate to MD
2016-06-01 18:18:23 -07:00
iamqizhao fca009f66f Fix some small comments 2016-05-26 15:11:33 -07:00
Michal Witkowski eec6ad361b authority: address comments from PR 2016-05-25 11:38:25 +01:00
iamqizhao fda7cb3cdf Remove unused import 2016-05-19 10:59:35 -07:00
iamqizhao 2151d51eaa small error touchup 2016-05-18 17:19:50 -07:00
iamqizhao 5d62215b41 some minor fixes 2016-05-18 16:26:12 -07:00
Michal Witkowski 1ef2c5293f fix `TestCompressOK` and client reserved HTTP header handling 2016-05-17 14:35:18 +01:00
iamqizhao aa532d5baf Fix some issues and remove garbbage files 2016-05-16 15:31:00 -07:00
Michal Witkowski e54a726f0a make :authority propagate to MD 2016-05-16 18:10:00 +01:00
iamqizhao 03cdc42949 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-05-12 17:02:23 -07:00
iamqizhao 8d1806945e Release the quota taken in streamsQuota when an rpc is timeout or canceled. 2016-05-11 15:50:22 -07:00
iamqizhao 19ded23951 graceful close and test 2016-05-10 19:29:44 -07:00
iamqizhao 44373898ac Merge branch 'master' of https://github.com/grpc/grpc-go 2016-05-06 15:47:17 -07:00
iamqizhao 9c2d8546bf load balancer 2016-05-06 15:47:09 -07:00
iamqizhao dc1dd06ebe Fix a race of onRead couting 2016-05-06 12:01:14 -07:00
iamqizhao 9604a2bb7d Revert "Fix onRead race"
This reverts commit 973c6ff04d.
2016-05-06 11:57:52 -07:00
iamqizhao 973c6ff04d Fix onRead race 2016-05-06 11:49:49 -07:00
iamqizhao 0f4e1e7ee5 Start reader Goroutine earlier 2016-04-22 13:49:56 -07:00
iamqizhao 293b2f9fa8 Close errorChan even when there is no pending I/O 2016-04-21 13:42:59 -07:00
iamqizhao 25dd388f9a more typo 2016-04-18 10:42:21 -07:00
iamqizhao ee96f6b348 Fix a typo 2016-04-18 10:37:34 -07:00
iamqizhao ac3c5847a1 fix a couple of misuse of ctx introduced recently 2016-04-18 10:30:34 -07:00
iamqizhao 5ae93a9d0e Addressed the comments 2016-04-15 11:54:48 -07:00
iamqizhao 963ee99c99 Refactored the inbound flow control and fixed a couple of issues. 2016-04-14 14:16:39 -07:00
iamqizhao c1db6d8439 Add a sanity check on the data size 2016-04-12 11:57:10 -07:00
iamqizhao ccdc150c37 Fix window update counting for the canceled streams 2016-04-12 11:06:27 -07:00
Qi Zhao 3ba0629598 Merge pull request #624 from tianon/recieved
Fix minor "recieved" typo (should be "received")
2016-04-04 11:31:34 -07:00
Qi Zhao 940ec1b75c Merge pull request #615 from tamird/marker-method
transport: replace isItem with a marker method
2016-04-04 11:31:14 -07:00
Qi Zhao 466b6e4052 Merge pull request #587 from tamird/perf
transport: allocate bigger slabs and reuse
2016-04-04 11:30:38 -07:00
Tamir Duberstein 036dca28a6 transport: replace isItem with a marker method
Also changes the receivers to pointers because:
- Implementing an interface using value receivers causes both pointers
and values to implement that interface; implementing an interface using
pointer receivers causes only pointers to implement the interface,
thereby providing better type safety.
- Wrapping any value other than an empty struct in an interface causes
the value to be heap-allocated; no additional allocations are therefore
caused by this change.
2016-04-02 21:39:09 -04:00
Tianon Gravi bbde7d8d28 Fix minor "recieved" typo (should be "received") 2016-04-02 10:34:26 -07:00
iamqizhao 2f0d12ea11 Added the unmapped http2 error and fixed a related bug in RST_STREAM handling. 2016-03-29 11:07:22 -07:00
Tamir Duberstein 9e8752e7a2 transport: allocate bigger slabs and reuse
This provides a substantial speed improvement with large payloads.

Benchmarked using https://github.com/cockroachdb/rpc-bench:

```
name                 old time/op    new time/op    delta
GRPCServeHTTP_1K-4      178µs ± 2%     177µs ± 1%     ~     (p=1.000 n=5+5)
GRPCServeHTTP_64K-4    1.30ms ± 3%    1.09ms ± 4%  -16.82%  (p=0.008 n=5+5)

name                 old speed      new speed      delta
GRPCServeHTTP_1K-4   11.5MB/s ± 2%  11.6MB/s ± 1%     ~     (p=1.000 n=5+5)
GRPCServeHTTP_64K-4   100MB/s ± 2%   121MB/s ± 4%  +20.26%  (p=0.008 n=5+5)

name                 old alloc/op   new alloc/op   delta
GRPCServeHTTP_1K-4     88.5kB ± 0%    93.9kB ± 0%   +6.16%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4     801kB ± 0%     791kB ± 0%   -1.16%  (p=0.008 n=5+5)

name                 old allocs/op  new allocs/op  delta
GRPCServeHTTP_1K-4        162 ± 0%       156 ± 0%   -3.70%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4       645 ± 0%       284 ± 0%  -55.96%  (p=0.016 n=5+4)
```
2016-03-29 05:29:55 -04:00
Qi Zhao 877b524786 Merge pull request #588 from tamird/perf-less
transport: performance improvements
2016-03-28 23:30:09 -07:00
Tamir Duberstein 54ac7579a7 transport: skip the backlog if it's empty
This provides a modest reduction in allocation count.

Benchmarked using https://github.com/cockroachdb/rpc-bench:

```
name                 old time/op    new time/op    delta
GRPCServeHTTP_1K-4      181µs ± 3%     178µs ± 2%    ~     (p=0.310 n=5+5)
GRPCServeHTTP_64K-4    1.31ms ± 4%    1.30ms ± 3%    ~     (p=0.548 n=5+5)

name                 old speed      new speed      delta
GRPCServeHTTP_1K-4   11.3MB/s ± 3%  11.5MB/s ± 2%    ~     (p=0.246 n=5+5)
GRPCServeHTTP_64K-4   100MB/s ± 4%   100MB/s ± 2%    ~     (p=0.548 n=5+5)

name                 old alloc/op   new alloc/op   delta
GRPCServeHTTP_1K-4     88.5kB ± 0%    88.5kB ± 0%  -0.09%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4     801kB ± 0%     801kB ± 0%  -0.05%  (p=0.008 n=5+5)

name                 old allocs/op  new allocs/op  delta
GRPCServeHTTP_1K-4        167 ± 0%       162 ± 0%  -2.99%  (p=0.008 n=5+5)
GRPCServeHTTP_64K-4       672 ± 0%       645 ± 0%  -4.08%  (p=0.008 n=5+5)
```
2016-03-28 21:26:36 -04:00
Menghan Li 71e3dbec56 Use ErrorDetail() to provide better error msg for malformed HTTP2 2016-03-28 11:34:29 -07:00
iamqizhao e5f60381dd lowercase credential keys 2016-03-22 11:33:19 -07:00
iamqizhao a098b2c182 Specialize http2.StreamError when the server reads frames 2016-03-21 18:23:30 -07:00