Commit Graph

1772 Commits

Author SHA1 Message Date
Menghan Li 5f47f9f5cc Use user context instead of creating new context for client side stream 2016-09-12 13:23:05 -07:00
Zellyn Hunter a45515c6ca Log grpc.Address objects with %v, not %q
Structs should use %v; %q only makes sense for strings, chars, etc.
2016-09-12 15:09:10 -04:00
Qi Zhao 3e1c91c1e0 Merge pull request #882 from menghanl/blocking_balancer
Move balancer initialization into a goroutine
2016-09-12 11:24:40 -07:00
Menghan Li 979f41603b review fix 2016-09-12 10:35:11 -07:00
Menghan Li 1c20514d29 Make grpc.SendHeader return rpc error 2016-09-09 11:36:01 -07:00
Qi Zhao 28707e14b1 Merge pull request #883 from menghanl/fix_interop_tls_override
Set interop default server_host_override to empty string
2016-09-09 10:41:34 -07:00
Menghan Li 18f8a8be26 set interop default server_host_override to empty string 2016-09-09 10:24:20 -07:00
Menghan Li 726462e0cc fix TestTLSServerNameOverwrite timeout error 2016-09-08 17:26:58 -07:00
Menghan Li 74f7afb1f9 Move balancer initialization into a goroutine 2016-09-08 15:13:50 -07:00
Qi Zhao 0e6ec3a450 Merge pull request #876 from menghanl/header_close
Close headerChan if processHeaderField sets error
2016-09-06 13:15:33 -07:00
Qi Zhao 4361b5250a Merge pull request #879 from menghanl/authority
Overwrite authority if creds servername is specified
2016-09-06 11:36:58 -07:00
Menghan Li a00cbfeab5 Overwrite authority if creds servername is specified 2016-09-06 11:23:30 -07:00
Menghan Li 52f6504dc2 Merge pull request #867 from iamqizhao/master
Support client side interceptor
2016-09-02 15:12:15 -07:00
Menghan Li cde7d495f6 Close headerChan if processHeaderField sets error 2016-09-02 14:51:05 -07:00
Qi Zhao 8d57dd3404 Merge pull request #874 from menghanl/avoid_streamerror
Fix server side errors
2016-09-02 14:30:07 -07:00
Qi Zhao b36b3ef700 Merge pull request #877 from edrex/patch-1
Doc: Fix typo in func (s *Server) comment
2016-09-02 14:19:47 -07:00
Menghan Li 086edd7dfd Unexport transport.StreamErrorf and transport.ConnectionErrorf 2016-09-02 14:15:27 -07:00
Menghan Li 5060203263 fixes in end2end tests 2016-09-02 14:15:26 -07:00
Menghan Li 477d54e0c9 Do not send reset stream on context timeout 2016-09-02 14:15:23 -07:00
Eric Drechsel 3bea3c5f8b Doc: Fix typo in func (s *Server) comment 2016-09-02 12:20:15 -07:00
Menghan Li 5e734ab23e Avoid creating transport stream error outside of transport 2016-09-02 11:57:42 -07:00
Qi Zhao 79b7c34917 Merge pull request #868 from menghanl/connection_errorf
Use ConnectionErrorf
2016-08-26 15:36:31 -07:00
Qi Zhao 4c8d05f3b1 Merge pull request #864 from tamird/retry-timeout
transport: robustly detect temporary errors
2016-08-26 15:02:58 -07:00
Menghan Li f958389aff Use ConnectionErrorf instread of ConnectionError{} 2016-08-26 14:55:42 -07:00
iamqizhao 61f62e0da6 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-08-26 13:51:46 -07:00
iamqizhao 1e47e17230 Support client side interceptor 2016-08-26 13:50:38 -07:00
Mark D. Roth 44e75c33ee Code review changes. 2016-08-26 12:59:51 -07:00
Qi Zhao d736c1182a Merge pull request #851 from menghanl/server_cred_return_nil_conn
Add credentials ErrConnDispatch to tell gRPC to keep rawConn open
2016-08-26 11:50:23 -07:00
Mark D. Roth 43b65b892d Merge remote-tracking branch 'upstream/master' into status_interop_test 2016-08-26 11:19:16 -07:00
Menghan Li d4b6ce0cfe Merge pull request #861 from iamqizhao/master
Add an err logging to testFailFast
2016-08-26 10:33:23 -07:00
Tamir Duberstein 0df4503b9a
transport: robustly detect temporary errors
A bit paranoid, but should help mitigate more issues like #859.
2016-08-25 21:30:54 -04:00
Tamir Duberstein e1b61502bc
test: remove useless local variable 2016-08-25 21:30:54 -04:00
Tamir Duberstein 4775d9da13
test: DRY 2016-08-25 21:30:54 -04:00
Tamir Duberstein 1689a9c9eb
test: output codes as strings in failure messages 2016-08-25 21:30:52 -04:00
iamqizhao 935fb215d6 fix 2016-08-25 16:30:04 -07:00
iamqizhao 42e031a928 Use fmt instead grpclog 2016-08-25 15:13:27 -07:00
iamqizhao 4c15c984f2 change to Printf 2016-08-25 15:04:02 -07:00
Qi Zhao b7aa4e95cb Merge pull request #862 from tamird/fix-conn-leak-again
Avoid goroutine leak in clientconn
2016-08-25 14:36:05 -07:00
Tamir Duberstein dd5645bebf
Avoid goroutine leak in clientconn
Prior to this change, it was possible for `DialContext` to return
`(nil, err)` without properly closing the `ClientConn`, resulting in an
unavoidable leak of the `resetAddrConn` goroutine.
2016-08-25 17:02:43 -04:00
Qi Zhao d8f4ebe77f Merge pull request #859 from menghanl/client_handshake_timeout
Client handshake timeout
2016-08-25 10:54:13 -07:00
iamqizhao 53578d490a Merge branch 'master' of https://github.com/grpc/grpc-go 2016-08-24 16:35:09 -07:00
iamqizhao 152c95e0d8 add err logging to testFailFast 2016-08-24 16:34:37 -07:00
Menghan Li 0c58a17d6f Add credentials ErrConnDispatch 2016-08-24 16:20:57 -07:00
Menghan Li d3a6b8a57f Add TestNonFailFastRPCSucceedOnTimeoutCreds 2016-08-24 15:38:04 -07:00
Menghan Li 2ac2d85a1b context.DeadlineExceeded returned by ClientHandshake should not be fatal error 2016-08-24 15:38:04 -07:00
Menghan Li 9874075aee Merge pull request #858 from iamqizhao/master
Detach user-passed context (via DialContext(...)) with the context of ClientConn
2016-08-24 15:24:05 -07:00
iamqizhao 6cc4c5785d refactor to simplify 2016-08-24 12:56:16 -07:00
iamqizhao 9dbd95fe38 make the test failure consistent 2016-08-24 11:02:18 -07:00
iamqizhao 7873a050d4 fix the test 2016-08-24 10:46:06 -07:00
iamqizhao 7eae19acb7 fix the issue 2016-08-23 19:23:04 -07:00