Граф коммитов

2022 Коммитов

Автор SHA1 Сообщение Дата
Yuxuan Li fa2968617c Merge branch 'master' into service_config_pr 2017-04-06 14:12:34 -07:00
Yuxuan Li 6f8b55318a fix the testMaxMsgSizeServerAPI failure 2017-04-06 14:08:04 -07:00
dfawley 1d27587e10 Change status package to deal with concrete types instead of interfaces (#1171) 2017-04-06 11:41:07 -07:00
Yuxuan Li f1bb70facf gofmt 2017-04-05 15:08:25 -07:00
lyuxuan f02290b023 Merge branch 'master' into service_config_pr 2017-04-05 11:15:55 -07:00
Yuxuan Li a66f9231a8 Make initial service config non-blocking in Dial() 2017-04-05 11:08:50 -07:00
dfawley b507112439 Add status package for reporting gRPC status and errors (#1156)
When an error implemented by the status package is returned from a service
handler, the server will transmit a rich status message in the
"grpc-status-details-bin" trailing metadata field if any detailed data is
attached to the error.  Client-side, we will decode them if present in the
server's response and return them to the user code performing the RPC.

This is backward compatible with the existing errors supported by the grpc
package.  However, the grpc.Errorf, grpc.Code and grpc.ErrorDesc functions for
managing errors are now deprecated; status.Errorf and status.Status type
asserions should be used instead.
2017-04-05 10:35:40 -07:00
MakMukhi f45e6e3b30 Bug fix(Issue#1141): Check if peer is nil before trying to derefer it. (#1143) 2017-04-04 15:08:14 -07:00
Yuxuan Li ad16b942fb fix gofmt goimports go tool vet errors 2017-04-03 16:03:05 -07:00
apolcyn ee8ed34bcf get more metrics from go benchmark servers (#913)
* add user and system cpu usage to go benchmarks

* fix import and style issues

* sample elapsed time diffs after merging histograms

* style fixes and variables renames

* add pprof server to benchmark workers to grab different profile stats

* rename variables for consistency and default to no pprof
2017-04-03 15:53:03 -07:00
Yuxuan Li a0b902a11d fix missing import 2017-04-03 15:29:39 -07:00
Yuxuan Li 13b5f120b0 merge master 2017-04-03 15:20:13 -07:00
Yuxuan Li 50d4175072 Add client and service side apis for limiting the send/recv msg size. Update MethodConfig struct 2017-04-03 15:03:24 -07:00
Menghan Li b982c1caa6 Behavior change: do not strip out gRPC user-agent (#1158) 2017-04-03 12:31:31 -07:00
MakMukhi 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
Menghan Li 7fc29d0caa populate initReq target name and fix IP []byte type in grpclb (#1145) 2017-03-28 12:10:54 -07:00
Menghan Li b3cc2b5eca pick a random address if the current in use is deleted by resolver (#1135) 2017-03-28 11:13:46 -07:00
Menghan Li ccdf270424 add document to ClientHandshake about returning temporary error (#1125) 2017-03-28 11:12:50 -07:00
Menghan Li 0df08a7a03 :authority should include port number (#1123) 2017-03-28 11:09:23 -07:00
Menghan Li 14a6be430b Add grpc.Version string and use it in the UA (#1144) 2017-03-24 11:29:02 -07:00
Menghan Li 0a20758157 remove support for go1.5 (#1132) 2017-03-23 20:52:49 -07:00
MakMukhi 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
Mahak Mukhi d9541d7591 post-review commit. 2017-03-22 15:24:17 -07:00
MakMukhi 9d8d0c6e0a Update test to work according to changes made to maxStreams behavior. (#1137) 2017-03-22 13:52:10 -07:00
Mahak Mukhi 50fcb6ab90 post review update 2017-03-21 17:33:03 -07:00
Mahak Mukhi f1ab3d93d2 Post review update 2017-03-21 16:30:45 -07:00
dfawley 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
Mahak Mukhi 3c9df8ef7b Post review updates 2017-03-20 15:28:47 -07:00
MakMukhi 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
Mahak Mukhi 553538425b Removing unnecessary change to http2_server 2017-03-13 18:07:08 -07:00
Mahak Mukhi 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
Menghan Li 0713829b98 Merge pull request #1108 from MakMukhi/linter_update
golint update
2017-03-13 11:14:51 -07:00
Mahak Mukhi 82fb96a360 Rest of the implementation 2017-03-10 17:30:46 -08:00
Mahak Mukhi e5a289ced7 MaxConnectionIdle implementation. More to follow 2017-03-10 11:56:02 -08:00
MakMukhi 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
Mahak Mukhi 659f981255 more initial commits 2017-03-09 20:03:59 -08:00
Mahak Mukhi 0e71619115 making client consistent with server 2017-03-09 17:48:37 -08:00
Mahak Mukhi 1bf38b6a40 initial commit 2017-03-09 17:46:47 -08:00
Mahak Mukhi b9b6d48985 test debug 2017-03-09 17:01:46 -08:00
Mahak Mukhi a94b0948a3 Client should have a check on maximum size of received message size. 2017-03-09 16:58:23 -08:00
Mahak Mukhi d9b58b5ce9 Initial commit 2017-03-09 15:33:28 -08:00
Mahak Mukhi 5ebdd304ba lint update and test fix 2017-03-08 11:35:54 -08:00
Mahak Mukhi 0d5b22c2a7 golint update 2017-03-07 18:12:58 -08:00
MakMukhi 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
apolcyn 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
Mahak Mukhi 661dbbc817 conflict resolve 2017-03-06 13:19:09 -08:00
Mahak Mukhi 9d23576618 post-review update 2017-03-06 13:08:23 -08:00
Menghan Li 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
Doug Fawley 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
MakMukhi 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