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

80 Коммитов

Автор SHA1 Сообщение Дата
iamqizhao 900db87189 Allow >16k status desc 2015-11-18 16:22:08 -08:00
iamqizhao bcd6f37972 Attach the payload from ping frame to ping ack 2015-11-06 13:57:51 -08:00
iamqizhao 054d03a130 put ctx cancel into the right place 2015-10-29 10:55:53 -07:00
iamqizhao 7fcfcfa816 fix a counting race for max streams. 2015-10-22 11:00:21 -07:00
David Symonds eb3bd654cd Switch from github.com/bradfitz/http2 to golang.org/x/net/http2.
The latter is now the official HTTP2 package for Go.
2015-09-24 18:12:31 +10:00
iamqizhao a3a69e0847 Omit port number when construting audience string if it is default one (443) 2015-08-31 18:52:12 -07:00
iamqizhao 6be470f058 Credentials API and jwtAccess implementation tunning 2015-08-28 16:51:45 -07:00
iamqizhao c0e23d7ef3 make the tests happy 2015-08-26 12:40:24 -07:00
iamqizhao 125950284c separate auth info from normal metadata 2015-08-26 11:30:43 -07:00
iamqizhao 97574c6499 make the test happy 2015-08-24 11:40:40 -07:00
iamqizhao d12ff72146 allow access of some info of client certificate 2015-08-21 15:49:53 -07:00
Qi Zhao 7678a23bcb Merge pull request #284 from yangzhouhan/master
Revises Metadata
2015-08-11 10:54:11 -07:00
iamqizhao 3f70ec6f8a fix a race 2015-08-10 18:26:03 -07:00
yangzhouhan 676c10ae4d gofmt 2015-08-10 17:42:54 -07:00
yangzhouhan 4074c45c3f gofmt 2015-08-10 17:40:00 -07:00
yangzhouhan 484e2d96e5 change the metadata datastructure 2015-08-10 16:06:27 -07:00
iamqizhao 689884fbd0 handle empty data frame 2015-07-30 11:41:43 -07:00
Qi Zhao 94cb75a92e Merge pull request #263 from awpr/close_header_chan
Close the header channel if a stream is reset while waiting for headers.
2015-07-29 15:52:35 -07:00
iamqizhao bdccc897b0 gofmt -w 2015-07-28 16:47:04 -07:00
iamqizhao 4da1327a66 do right counting for max-streams flow control 2015-07-28 16:41:46 -07:00
iamqizhao e35bf02914 revise reconnect backoff strategy 2015-07-28 11:12:07 -07:00
Andrew Pritchard 7555ac5659 Close the header channel if a stream is reset while waiting for headers. 2015-07-26 13:16:03 -07:00
iamqizhao b17c171fb3 Merge branch 'master' of https://github.com/grpc/grpc-go 2015-07-24 17:15:56 -07:00
iamqizhao 20034b3877 Invert User-Agent order so application-provided string comes first 2015-07-24 17:14:26 -07:00
Qi Zhao ee185753fa Merge pull request #253 from awpr-google/honor_data_end_stream
Honor END_STREAM flags in HTTP/2 Data frames.
2015-07-24 16:40:22 -07:00
Andrew Pritchard 34745e1d39 Treat missing trailers as an internal error rather than success. 2015-07-24 15:47:35 -07:00
iamqizhao 23c960bc01 gofmt -w 2015-07-24 11:26:21 -07:00
iamqizhao 611d960757 support user-agent and allow users attach their own application user agent string 2015-07-24 11:19:08 -07:00
Andrew Pritchard 6246152236 Honor END_STREAM flags in HTTP/2 Data frames.
Without this, "broken deployments" that do not send trailers after their
response will cause Go clients to hang indefinitely (until a client-side
timeout or server-side slowloris protection kills the connection).

See the diagram at https://httpwg.github.io/specs/rfc7540.html#StreamStates and
the Data frame specification at https://httpwg.github.io/specs/rfc7540.html#DATA
for the relevant HTTP/2 specification.  See
https://github.com/grpc/grpc-common/blob/master/PROTOCOL-HTTP2.md#responses
for the specification that clients must be prepared for servers to omit
the trailers.
2015-07-24 07:39:22 -07:00
iamqizhao 0a97c5211e rename settings to ss 2015-07-21 18:02:14 -07:00
iamqizhao 57c62fd0e0 ack settings frame before applying the settings. 2015-07-21 17:39:50 -07:00
iamqizhao 9df0e935c0 fix a race 2015-06-01 13:02:31 -07:00
iamqizhao 8df7c3fd84 i) update streamsQuota only if streamsQuota is there when the stream is created; ii) move ops of streamsQuota out of mutex of the transport (except acquire()) 2015-05-28 13:43:27 -07:00
iamqizhao 458d514e70 new streams block when the max concurrent stram limit is reached. 2015-05-27 19:03:21 -07:00
iamqizhao 5f91fa6426 gofmt -w 2015-05-27 16:03:26 -07:00
iamqizhao c3c8cfb2da fix tests 2015-05-27 16:01:18 -07:00
iamqizhao a1baa00131 add some comments 2015-05-27 15:45:19 -07:00
iamqizhao 1b5f15dda8 blocking when max concurrent stream limit is reached. 2015-05-26 18:14:05 -07:00
iamqizhao 3617cd5ab3 revert handshaker changes 2015-05-12 17:59:20 -07:00
Peter Edge 7c025e8694 move log package references to grpclog 2015-05-09 11:43:59 +02:00
Peter Edge 101c1e1935 change log package references to grpc/log 2015-05-09 01:16:40 +02:00
iamqizhao 9d59a879e1 Add handshaker option to ClientConn 2015-05-01 18:10:40 -07:00
iamqizhao 03b78f7e01 Ack Ping frame 2015-04-24 13:55:46 -07:00
iamqizhao 71c0864854 a small fix 2015-04-21 17:25:53 -07:00
iamqizhao dfe197d91f remove dialing work from TransportAuthenticator 2015-04-21 17:22:15 -07:00
iamqizhao 2cf2d0871b remove WithNetwork and add WithDialer to have more flexibility on dialing 2015-04-21 16:19:29 -07:00
iamqizhao 3259049490 fix some typos and run gofmt 2015-04-17 13:50:18 -07:00
iamqizhao d52d8e2d40 gofmt 2015-04-15 15:42:15 -07:00
iamqizhao b8cfe25c6e bug fix: processing header fields regardless in order to keep HPACK tables consistent 2015-04-14 18:50:32 -07:00
iamqizhao b5774fd760 some additonal fix 2015-04-12 15:55:29 -07:00