Commit Graph

1772 Commits

Author SHA1 Message Date
iamqizhao 60c350b0e9 Detach user-passed context (via DialContext(...)) with the context of ClientConn 2016-08-23 18:18:18 -07:00
Qi Zhao 7f061361d3 Merge pull request #840 from tamird/go1.7
Go1.7
2016-08-23 11:30:50 -07:00
Menghan Li 0032a855ba Merge pull request #843 from iamqizhao/master
prepare GA announcement
2016-08-19 11:23:41 -07:00
Qi Zhao 231b4cfea0 Merge pull request #842 from menghanl/non_failfast_after_cc_close
Check cc.conns before reading cc.conns
2016-08-18 17:22:36 -07:00
iamqizhao faa2ad14db prepare GA announcement 2016-08-18 17:09:26 -07:00
Menghan Li f3ac95e6cd Check if cc.conns == nil before reading cc.conns 2016-08-18 16:43:58 -07:00
Tamir Duberstein abe69848df
travis: update all the tools
Fix new golint complaints
2016-08-18 16:53:48 -04:00
Tamir Duberstein 6e7d46934f
travis: test against Go1.7
Fix new go vet complaints
2016-08-18 16:53:47 -04:00
Qi Zhao 2e4cfe0fc5 Merge pull request #839 from menghanl/fix_go17_vet
Fix go 1.7 vet
2016-08-18 13:31:35 -07:00
Menghan Li e97a524cf1 Fix go 1.7 vet 2016-08-17 17:21:51 -07:00
Qi Zhao 8a81ddda27 Merge pull request #831 from spencerkimball/spencerkimball/dial-with-context
Implement DialContext to afford caller option of managing cancelation
2016-08-17 11:18:27 -07:00
Qi Zhao 6627689644 Merge pull request #837 from menghanl/ac_wait_errors
Fix ac.wait() errors
2016-08-17 10:50:25 -07:00
Menghan Li c72b08a774 Change errors returned by ac.wait() 2016-08-16 16:56:16 -07:00
Menghan Li cd5721c02f Add TestOneConnectionRemoval 2016-08-16 15:48:05 -07:00
Spencer Kimball b38541aeb0 Implement DialContext to afford caller option of managing cancelation 2016-08-16 16:57:59 -04:00
Qi Zhao c2781963b3 Merge pull request #830 from menghanl/non_blocking_rpc_reget_transport
Make non-failfast RPC get new transport instead of waiting
2016-08-15 14:45:04 -07:00
Qi Zhao 1415e1cd7a Merge pull request #818 from petermattis/pmattis/retry-client-handshake-eof
Retry transport creation when ClientHandshake returns EOF
2016-08-15 13:40:23 -07:00
Qi Zhao f61df31e29 Merge pull request #814 from alexmullins/master
Cleanup conn.Close() handling in newHTTP2Client()
2016-08-15 13:39:02 -07:00
Menghan Li 988c8863ad Add TestOneConnectionDown 2016-08-15 11:28:17 -07:00
Menghan Li a9c8aebe90 Make non-failfast RPC get new transport instead of waiting 2016-08-12 13:03:09 -07:00
Menghan Li c2c110d5cf Merge pull request #829 from menghanl/histogram_clear
Fix histogram clear()
2016-08-11 10:05:11 -07:00
Menghan Li 2ac2b966a8 Fix histogram clear() 2016-08-10 14:31:48 -07:00
Menghan Li edc5ccf8cb Merge pull request #817 from menghanl/finish_clientstream_on_error
Finish trace when newclientsteram returns error
2016-08-10 11:44:55 -07:00
Menghan Li 111daf1ceb Merge pull request #825 from tamird/log-the-error
resetTransport: log all transient errors when they occur
2016-08-10 11:38:21 -07:00
Tamir Duberstein 5e62f80ba8
resetTransport: log all transient errors when they occur
Previously, cancellation of the context would cause these transient
errors to be swallowed since the function would return before the
log line was reached.
2016-08-10 12:56:03 -04:00
MakMukhi 6140c2e83c Merge pull request #823 from MakMukhi/master
revert
2016-08-09 16:00:00 -07:00
MakMukhi 4ab5bfecd9 Merge pull request #2 from MakMukhi/revert-1-mmukhi_addTest
Revert "added two new testcases for backoff.go"
2016-08-09 15:53:20 -07:00
MakMukhi 34d99ff2c2 Revert "added two new testcases for backoff.go" 2016-08-09 15:53:00 -07:00
MakMukhi a7e29a2b52 Merge pull request #1 from MakMukhi/mmukhi_addTest
added two new testcases for backoff.go
2016-08-09 14:21:35 -07:00
MakMukhi e0fa149838 Merge pull request #820 from grpc/revert-819-mmukhi_addTest
Revert "added two new testcases for backoff.go"
2016-08-09 14:18:24 -07:00
MakMukhi cf0922650a Revert "added two new testcases for backoff.go" 2016-08-09 14:17:02 -07:00
MakMukhi c0309f2af4 Merge pull request #819 from MakMukhi/mmukhi_addTest
added two new testcases for backoff.go
2016-08-09 14:12:57 -07:00
Mak Mukhi d38b9be5f2 added two new testcases for backoff.go 2016-08-09 14:11:16 -07:00
Peter Mattis 35182852db Retry transport creation when ClientHandshake returns EOF
ClientHandshake performs the first IO on the connection and can give us
the first indication that the connection was closed. Making any error
from ClientHandshake a non-temporary error causes grpc.Invoke to not
retry a non-failfast RPC.

See https://github.com/cockroachdb/cockroach/issues/8353.
2016-08-09 16:38:18 -04:00
Menghan Li d2b50c7ca5 Allocate clientstream after getTransport 2016-08-09 13:22:02 -07:00
Menghan Li 43cdc3c81c Finish clientstream when newclientsteram returns error 2016-08-08 16:27:22 -07:00
Alex Mullins 32bc9f2357 Remove conn.Close() in tlsCred.ServerHandshake()
Removes the responsibility from tlsCred.ServerHandshake() of calling Close() on the underlying connection. Returning an error is enough to close the connection: https://github.com/grpc/grpc-go/blob/master/server.go#L370.
2016-08-08 07:11:07 -05:00
Alex Mullins efa105d0d2 Cleanup conn.Close() handling in newHTTP2Client()
Removes the need to close the underlying connection in tlsCreds.ClientHandshake().
2016-08-08 03:49:40 -05:00
Menghan Li 35896af9ad Merge pull request #768 from menghanl/fatal_on_bad_certificates
Return error on bad certificates
2016-08-02 21:27:28 -07:00
Menghan Li a4587cd3f0 Fix review comments 2016-08-02 21:07:00 -07:00
Qi Zhao 24567366d3 Merge pull request #809 from menghanl/disable_handler_tests
Temporarily disable handler-tls for TestClientStreamingError due to #619
2016-08-02 10:52:16 -07:00
Menghan Li 63e2ba4fce Temporarily disable handler-tls for TestClientStreamingError due to #619 2016-08-01 16:52:41 -07:00
Menghan Li fa5748afd3 Change error returned for transport not found 2016-08-01 16:01:16 -07:00
Menghan Li f6b46c1787 Fix errors after rebasing 2016-08-01 16:01:10 -07:00
Menghan Li 4bbb9d8142 Add test env for no-balancer 2016-08-01 15:55:08 -07:00
Menghan Li 1a571b746a Add TestFailFastRPCWithNoBalancerErrorOnBadCertificates TestNonFailFastRPCWithNoBalancerErrorOnBadCertificates 2016-08-01 15:55:08 -07:00
Menghan Li d7d831d95e Do not create RoundRobin if balancer is not specified 2016-08-01 15:55:08 -07:00
Menghan Li 7c6eabc607 Make Dial() return original error 2016-08-01 15:55:08 -07:00
Menghan Li b41c9e8e14 Add TestFailFastRPCErrorOnBadCertificates 2016-08-01 15:55:08 -07:00
Menghan Li 558ecfb3a6 Remove RPC non-fail-fast return 2016-08-01 15:55:08 -07:00