1245 Commits

Author SHA1 Message Date
61e92eacc3 Phase 1 to add the server interceptor 2016-04-18 16:18:34 -07:00
dec33edc37 Merge pull request #641 from iamqizhao/master
make setDefault(...) non-member function
2016-04-18 13:39:30 -07:00
9cec19a4d4 make setDefault(...) non-member function 2016-04-18 13:15:27 -07:00
75407c0f82 change backoff to pointer receiver 2016-04-18 12:12:19 -07:00
867e23d72a Merge pull request #638 from stevvooe/backoff-set-defaults
backoff: set default values on BackoffConfig
2016-04-18 11:58:19 -07:00
8ef1dcabab backoff: make DefaultBackoffConfig a concrete value
To enforce immutability of the `DefaultBackoffConfig`, we've made it a
concrete value. While fields can still be set directly on the value,
taking a copy will not incidentally pull a reference to the variable.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-18 11:33:39 -07:00
56c490a369 Merge pull request #640 from iamqizhao/master
Fix a couple of misuse of ctx introduced recently
2016-04-18 10:58:19 -07:00
25dd388f9a more typo 2016-04-18 10:42:21 -07:00
ee96f6b348 Fix a typo 2016-04-18 10:37:34 -07:00
7af9aab473 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-04-18 10:30:44 -07:00
ac3c5847a1 fix a couple of misuse of ctx introduced recently 2016-04-18 10:30:34 -07:00
8086cee031 Merge pull request #627 from menghanl/stress_testing
Stress testing
2016-04-18 09:58:50 -07:00
8c5cde66aa Address code review comments 2016-04-15 17:49:25 -07:00
9ff38e9093 backoff: set default values on BackoffConfig
Because most of the fields on `BackoffConfig` are unexported, correctly
using the config requires copying from the default. This sets the
defaults appropriately and falls back to a default if MaxDelay is
negative or zero.

Tests are added to ensure that the backoff is set correctly in common
use cases.

Signedroff-by: Stephen J Day <stephen.day@docker.com>
Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-15 16:12:47 -07:00
8eeecf2291 Merge pull request #637 from iamqizhao/master
Refactored the inbound flow control and fixed a couple of issues.
2016-04-15 13:47:30 -07:00
9530d84aba Add license 2016-04-15 12:56:21 -07:00
0bf5c5c18f Rewrite timeout stop with channel 2016-04-15 12:56:13 -07:00
5ae93a9d0e Addressed the comments 2016-04-15 11:54:48 -07:00
963ee99c99 Refactored the inbound flow control and fixed a couple of issues. 2016-04-14 14:16:39 -07:00
056dc9c933 Change histogram algorithm to comply with benchmark requirements 2016-04-14 11:43:24 -07:00
536ed747b8 Change histogram lowbound to float64 2016-04-14 11:43:24 -07:00
d8783294dd Add sumOfSquares to histogram 2016-04-14 11:43:15 -07:00
9ac074585f Merge pull request #634 from heyitsanthony/cancel-nosend
transport: do not create a Stream on a canceled context
2016-04-13 10:35:15 -07:00
025674fec5 transport: do not create a Stream on a canceled context
Occasionally Invoke() would let a message slip through when the context
is already canceled.
2016-04-12 21:45:35 -07:00
326d66361a Merge pull request #633 from iamqizhao/master
Fix window update counting for the canceled streams
2016-04-12 13:44:11 -07:00
c1db6d8439 Add a sanity check on the data size 2016-04-12 11:57:10 -07:00
ccdc150c37 Fix window update counting for the canceled streams 2016-04-12 11:06:27 -07:00
d07d0562ff Merge pull request #601 from stevvooe/backoff-strategy
backoff: allow configuration of backoff strategy
2016-04-11 10:32:33 -07:00
70f7fa1c19 Address code review comments 2016-04-08 12:17:37 -07:00
f7992fa659 Add metrics server to stress client and add metrics client 2016-04-08 12:15:01 -07:00
47b74a63a8 backoff: allow configuration of backoff strategy
The backoff function and parameters have been pulled up into an
interface `backoffStrategy`. The default parameters are now part of a
package variable `DefaultBackoffConfig`. The strategy is then plumbed
through `dialOptions`. As a result of this PR, the
maximum backoff delay can now be set using the `WithBackoffConfig` dial
option.

While the addition of strategy may seem premature, this allows one to
simply export `BackoffStrategy` and `WithBackoff` to allow arbirarily
configurable backoff strategies.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
2016-04-07 20:17:57 -07:00
7834b974e5 Merge pull request #631 from iamqizhao/master
Temporarily disable handler-tls for TestHealthCheckOff due to #619
2016-04-07 17:23:45 -07:00
eae2b52e5d Temporarily disable handler-tls for TestHealthCheckOff due to #619 2016-04-07 16:01:36 -07:00
ecd00d52ac Merge pull request #630 from timburks/patch-1
Update grpc-auth-support.md
2016-04-06 14:04:19 -07:00
c3d43ed0f4 Update grpc-auth-support.md 2016-04-05 17:31:00 -07:00
3d07b4a547 Add stress test metrics proto 2016-04-05 14:29:53 -07:00
74b8b4c086 Add stress test client 2016-04-05 14:29:40 -07:00
e3d8dfd907 Merge pull request #626 from menghanl/interop_log
Move interop log from utils to client main
2016-04-04 18:43:02 -07:00
62a892fc16 Move interop log from utils to client main 2016-04-04 16:00:19 -07:00
3ba0629598 Merge pull request #624 from tianon/recieved
Fix minor "recieved" typo (should be "received")
2016-04-04 11:31:34 -07:00
940ec1b75c Merge pull request #615 from tamird/marker-method
transport: replace isItem with a marker method
2016-04-04 11:31:14 -07:00
466b6e4052 Merge pull request #587 from tamird/perf
transport: allocate bigger slabs and reuse
2016-04-04 11:30:38 -07:00
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
bbde7d8d28 Fix minor "recieved" typo (should be "received") 2016-04-02 10:34:26 -07:00
5aeebcd810 Merge pull request #605 from broady/contrib
Add instructions to CONTRIBUTING.md
2016-04-01 14:03:47 -07:00
ac6f0e3135 Merge pull request #623 from tamird/simplify-minor
minor cleanup: simplify looping
2016-04-01 13:52:20 -07:00
ea95bd6b4c Merge pull request #621 from xiang90/doc
remove unnecessary comment on invoke/sendmsg
2016-04-01 13:50:40 -07:00
11ef22ebfb make comment on invoke/sendmsg more clear 2016-04-01 10:47:25 -07:00
2a118f74a2 minor cleanup: simplify looping 2016-03-31 22:05:49 -04:00
68dadb4d00 Merge pull request #620 from iamqizhao/master
fix a test error msg
2016-03-31 09:36:46 -07:00