Commit Graph

1772 Commits

Author SHA1 Message Date
Menghan Li 779083c633 Change TestDialWithBlockErrorOnBadCertificates error check 2016-08-01 15:55:08 -07:00
Menghan Li 1d0bea7943 Add addrConn tearDownError 2016-08-01 15:55:08 -07:00
Menghan Li e9e6ae6215 Make Dial() withblock error on bad certificates 2016-08-01 15:55:08 -07:00
Qi Zhao 3de685a0ed Merge pull request #808 from menghanl/fix_test
Fix test error condition
2016-08-01 15:52:58 -07:00
Qi Zhao 220877db17 Merge pull request #796 from tamird/cancel-creds
Plumb context into ClientConn dialing and ClientHandshake of credentials.
2016-08-01 15:51:45 -07:00
Menghan Li d9e00dc408 Fix test error condition 2016-08-01 14:41:44 -07:00
Tamir Duberstein 5c7ed938f9
credentials: plumb cancellation into ClientHandshake
This is a minor breaking change to `TransportCredentials`, however
it should not be a problem in practice as not many users are using
custom implementations. In particular, users of `NewTLS` will not
be affected.

This change also replaces the earlier `Timeout` and `Cancel` fields
with a `context.Context`, which is plumbed all the way down from
`grpc.Dial`, laying the ground work for a user-provided context.

Also, support for Go 1.7 is added.
2016-08-01 16:29:56 -04:00
Tamir Duberstein 5a423e610f
test: fix log noise 2016-08-01 16:28:14 -04:00
Qi Zhao a2e43287dd Merge pull request #806 from iamqizhao/master
Fix #804
2016-08-01 13:26:43 -07:00
iamqizhao 21c5a43e47 fix a race condition causing http2Client.controller leaking 2016-08-01 11:51:20 -07:00
Qi Zhao 452f01f3ae Merge pull request #780 from iamqizhao/master
Limit the max request size to be accepted
2016-07-30 11:50:10 -07:00
iamqizhao 058603d782 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-07-30 11:40:40 -07:00
Qi Zhao 3d1bf72f7a Merge pull request #801 from iamqizhao/race-fix
Improve a transport test
2016-07-30 11:40:24 -07:00
iamqizhao 405998a836 a small fix 2016-07-30 11:32:15 -07:00
iamqizhao 0f38a650e6 a small fix 2016-07-30 11:31:00 -07:00
iamqizhao fb5fcd93fd revert some changes on the transport test 2016-07-30 11:26:07 -07:00
iamqizhao 2f16a90cc7 tune a end2end test 2016-07-30 11:18:58 -07:00
iamqizhao 0eea2a699d add a missing server.stop() 2016-07-30 11:11:39 -07:00
iamqizhao a7d4cf8e91 Merge branch 'master' of https://github.com/grpc/grpc-go into race-fix 2016-07-30 11:11:04 -07:00
Qi Zhao 2d55a86435 Merge pull request #802 from grpc/revert-799-some_fix
Revert "fix some bugs"
2016-07-30 11:08:56 -07:00
Qi Zhao b313fc0ad5 Revert "fix some bugs" 2016-07-30 02:06:47 -07:00
iamqizhao 8ab0c9d545 Merge branch 'master' of https://github.com/grpc/grpc-go into race-fix 2016-07-29 18:18:19 -07:00
iamqizhao 5adfa1733e Merge branch 'master' of https://github.com/grpc/grpc-go 2016-07-29 18:17:16 -07:00
iamqizhao fc500c24f6 fix go vet error 2016-07-29 18:08:00 -07:00
iamqizhao 849641790e small fix 2016-07-29 17:58:17 -07:00
iamqizhao 2e3bdf55f8 make it faster 2016-07-29 17:52:30 -07:00
iamqizhao 5093059db2 fix a counting error in the previous commit 2016-07-29 17:36:12 -07:00
Menghan Li 1aa8ce6467 Merge pull request #800 from menghanl/refactor_ac_new_and_teardown
Replace cc.newAddrConn with cc.resetAddrConn
2016-07-29 17:35:23 -07:00
iamqizhao bcbb6549ac Merge branch 'master' of https://github.com/grpc/grpc-go 2016-07-29 16:20:08 -07:00
iamqizhao b13920a0cf add the mem alloc guard on server 2016-07-29 16:19:20 -07:00
Menghan Li cbae5b1f01 Replace cc.newAddrConn with cc.resetAddrConn
When goaway is received by client, a new ac should replace the old ac.
Without this change, ac is removed first and a new one is added later,
ac.tearDown() and cc.newAddrConn are two functions called consecutively,
So there's a small chance that getTransport is called in between and
misses the new ac. After this change, the value in map conns is replaced
directly, and this issue should be resolved.
2016-07-29 16:03:53 -07:00
iamqizhao 77ec0f0a5b refactor the test 2016-07-29 15:48:44 -07:00
iamqizhao 34a08c43fb Merge branch 'master' of https://github.com/grpc/grpc-go into race-fix 2016-07-29 13:43:07 -07:00
iamqizhao 1b5deaf340 clean a transport test 2016-07-29 13:42:59 -07:00
Qi Zhao 53b060655d Merge pull request #799 from menghanl/some_fix
fix some bugs
2016-07-29 12:45:19 -07:00
Menghan Li e8e6719e49 Add server.stop() to one transport test 2016-07-29 11:28:31 -07:00
Menghan Li 5bf353f41b Prioritize ctx.Done() in wait() 2016-07-29 11:28:31 -07:00
Qi Zhao 9e57a405e3 Merge pull request #791 from menghanl/all_EOF_in_write
io.EOF should be an expected result of Write
2016-07-29 11:20:51 -07:00
Qi Zhao 45649cd32d Merge pull request #797 from iamqizhao/race-fix
refactor GracefulStop a bit
2016-07-29 11:20:30 -07:00
Qi Zhao 3f4822b67e Merge pull request #787 from cube2222/master
Fixing #786
2016-07-29 11:13:17 -07:00
iamqizhao 0f3fc4355d refactor GracefulStop a bit 2016-07-29 10:59:24 -07:00
Menghan Li 7967c49560 io.EOF should be an expected result of Write 2016-07-29 10:42:28 -07:00
iamqizhao a4c08780d5 Merge branch 'master' of https://github.com/grpc/grpc-go 2016-07-29 10:10:58 -07:00
Qi Zhao 5a547ed72c Merge pull request #795 from tamird/graceful-deadlock
Fix deadlock when GracefulStop()ing multiple times
2016-07-29 10:00:30 -07:00
Qi Zhao 7c6103d142 Merge pull request #794 from smallfish/master
fix examples/gotutorial.md error link
2016-07-29 09:39:47 -07:00
Tamir Duberstein 069ed42115
Fix deadlock when GracefulStop()ing multiple times
Fixes #793.
2016-07-29 12:26:26 -04:00
陈小玉 9102dd4691 fix gotutorial.md error link
fix route_guide proto link
2016-07-29 11:29:02 +08:00
Qi Zhao f5118cfac7 Merge pull request #792 from iamqizhao/race-fix
fix another data race along with goaway
2016-07-28 19:56:29 -07:00
iamqizhao a09c6888cc fix another data race along with goaway 2016-07-28 19:47:38 -07:00
Qi Zhao ae7de36fbd Merge pull request #790 from iamqizhao/race-fix
Fix some goaway related test flakiness
2016-07-28 19:18:16 -07:00