2158 Commits

Author SHA1 Message Date
b2fae0cf40 Implementation for server enforcement of keepalive policy. (#1147)
Implementation of server enforcement of keepalive policy.
Server will close connection with a client that violates this policy.
Policy parameters:
 - MinTime is the minimum amount of time a client should wait before sending a keepalive ping.
 - If PermitWithoutStream true, server expects keepalive pings even when there are no active streams(RPCs).
2017-03-31 11:37:51 -07:00
7fc29d0caa populate initReq target name and fix IP []byte type in grpclb (#1145) 2017-03-28 12:10:54 -07:00
b3cc2b5eca pick a random address if the current in use is deleted by resolver (#1135) 2017-03-28 11:13:46 -07:00
ccdf270424 add document to ClientHandshake about returning temporary error (#1125) 2017-03-28 11:12:50 -07:00
0df08a7a03 :authority should include port number (#1123) 2017-03-28 11:09:23 -07:00
14a6be430b Add grpc.Version string and use it in the UA (#1144) 2017-03-24 11:29:02 -07:00
0a20758157 remove support for go1.5 (#1132) 2017-03-23 20:52:49 -07:00
c3df40279c Support max age(#1119)
The new logic added to the server does the following:
- Gracefully closes an idle connection after a duration of keepalive.MaxConnectionIdle.
- Gracefully closes any connection after a duration of keepalive.MaxConnectionAge.
- Forcibly closes a connection after an additive period of keepalive.MaxConnectionAgeGrace over keepalive.MaxConnectionAge.
- Makes sure a connection is alive by sending pings with a frequency of keepalive.Time and closes a non-resposive connection after an additional duration of keepalive.Timeout.
2017-03-23 10:49:38 -07:00
d9541d7591 post-review commit. 2017-03-22 15:24:17 -07:00
9d8d0c6e0a Update test to work according to changes made to maxStreams behavior. (#1137) 2017-03-22 13:52:10 -07:00
50fcb6ab90 post review update 2017-03-21 17:33:03 -07:00
f1ab3d93d2 Post review update 2017-03-21 16:30:45 -07:00
c5a5dbc500 Don't return an error from dial if the balancer returns no initial servers (#1112)
This modifies the WithBlock behavior somewhat to block until there is at least
one valid connection.  Previously, each connection would be made serially until
all had completed successfully, with any errors returned to the caller.  Errors
are now only returned due to connecting to a backend if a balancer is not used,
or if there is an error starting the balancer itself.

Fixes #976
2017-03-21 11:35:53 -07:00
3c9df8ef7b Post review updates 2017-03-20 15:28:47 -07:00
cdee119ee2 Merge pull request #1124 from MakMukhi/rst_stream_issue
Upon observing timeout on rpc context, the client should send a RST_S…
2017-03-14 15:44:13 -07:00
553538425b Removing unnecessary change to http2_server 2017-03-13 18:07:08 -07:00
6b28425a45 Upon observing timeout on rpc context, the client should send a RST_STREAM to the server before freeing the quota for more rpcs to be created. 2017-03-13 17:09:45 -07:00
0713829b98 Merge pull request #1108 from MakMukhi/linter_update
golint update
2017-03-13 11:14:51 -07:00
82fb96a360 Rest of the implementation 2017-03-10 17:30:46 -08:00
e5a289ced7 MaxConnectionIdle implementation. More to follow 2017-03-10 11:56:02 -08:00
d50cf2db16 Merge pull request #1117 from MakMukhi/client_max_msg_size
Client should have a check on maximum size of received message size.
2017-03-10 11:14:43 -08:00
659f981255 more initial commits 2017-03-09 20:03:59 -08:00
0e71619115 making client consistent with server 2017-03-09 17:48:37 -08:00
1bf38b6a40 initial commit 2017-03-09 17:46:47 -08:00
b9b6d48985 test debug 2017-03-09 17:01:46 -08:00
a94b0948a3 Client should have a check on maximum size of received message size. 2017-03-09 16:58:23 -08:00
d9b58b5ce9 Initial commit 2017-03-09 15:33:28 -08:00
5ebdd304ba lint update and test fix 2017-03-08 11:35:54 -08:00
0d5b22c2a7 golint update 2017-03-07 18:12:58 -08:00
4eaacfed97 Merge pull request #993 from MakMukhi/mmukhi_keepalive_client
Point-to-point health check. Client side implementation
2017-03-06 16:54:00 -08:00
7b399ed358 Merge pull request #1076 from apolcyn/account_for_padding
account for padding in flow control, when received frame uses it
2017-03-06 13:37:14 -08:00
661dbbc817 conflict resolve 2017-03-06 13:19:09 -08:00
9d23576618 post-review update 2017-03-06 13:08:23 -08:00
0e5ab0098f Merge pull request #1106 from dfawley/cc_cancel
Add comment explaining why cancel is not called in success path after client transport is created
2017-03-06 12:00:49 -08:00
77204bfdf2 Add comment explaining why cancel is not called in success path after client transport is created 2017-03-03 16:46:26 -08:00
1dab933725 Merge pull request #1103 from menghanl/test_string_error
remove string comparing in test because text of an error string chang…
2017-03-02 18:05:54 -08:00
25f14b7f84 post-review updates 2017-03-02 18:00:55 -08:00
ba23d25e3a relax the checking on error string 2017-03-02 15:21:41 -08:00
8b2e129857 Merge pull request #1071 from MakMukhi/issue_1060
Issue #1060 maximum number of streams on the client should be capped …
2017-03-01 14:46:18 -08:00
f22061907e post-review updates 2017-03-01 13:08:05 -08:00
0dc1a7dd67 post review updates 2017-03-01 11:20:02 -08:00
f28d487753 future-proofing 2017-02-28 18:11:19 -08:00
e328ededa4 more refactoring 2017-02-28 12:41:34 -08:00
aefc96d792 Merge pull request #1027 from tamird/stringify-codes
Use codes.Code.String() rather than logging integers
2017-02-28 11:55:44 -08:00
3ad78109b1 removing dead code 2017-02-28 11:53:13 -08:00
bc3cca9945 Implementation changes;Using an independent goroutine for keepalive checks. 2017-02-28 11:49:51 -08:00
d122f1dfe6 Merge pull request #1082 from mwitkow/feature/unknown-handler-stream
add support for user-provided UnknownStreamHandler
2017-02-27 12:01:40 -08:00
9871e09f09 Use codes.Code.String() rather than logging integers
This produces better human-readable error messages.
2017-02-27 14:13:02 -05:00
e59576b1bb add support for user-provided UnknownStreamHandler 2017-02-27 18:07:41 +00:00
34384f34de Merge pull request #1080 from menghanl/travis_go18
add go1.8 to travis.yml
2017-02-23 16:04:25 -08:00