WK
08350ec0ef
Update subchannel.ts
2020-08-30 14:52:20 +08:00
WK
6f3db6f4d8
Update http_proxy.ts
2020-08-30 14:49:54 +08:00
WK
c536178c67
Fixed connectivity to Google PubSub over proxy
...
Latest version has caused @google-cloud/pubsub fail to connect over a proxy connection.
Snapshot of error:
2020-08-29T10:52:45.340Z | proxy | Successfully connected to pubsub.googleapis.c
om:443 through proxy 172.16.52.252:443
2020-08-29T10:52:45.370Z | subchannel | 172.16.52.252:443 CONNECTING -> TRANSIEN
T_FAILURE
2020-08-29T10:52:45.372Z | pick_first | CONNECTING -> TRANSIENT_FAILURE
2020-08-29T10:52:45.373Z | resolving_load_balancer | dns:172.16.52.252:443 CONNE
CTING -> TRANSIENT_FAILURE
2020-08-29T10:52:45.375Z | channel | Pick result: TRANSIENT_FAILURE subchannel:
undefined status: 14 No connection established
2020-08-29T10:52:45.377Z | call_stream | [11] cancelWithStatus code: 14 details:
"No connection established"
2020-08-29T10:52:45.379Z | call_stream | [11] ended with status: code=14 details
="No connection established"
2020-08-29T10:52:45.381Z | connectivity_state | dns:172.16.52.252:443 CONNECTING
-> TRANSIENT_FAILURE
Before proposed fix:
static getDefaultAuthority(target) {
return target.path; // this returns "pubsub.googleapis.com:443"
}
After proposed fix:
static getDefaultAuthority(target) {
const hostPort = uri_parser_1.splitHostPort(target.path); // target.path is "pubsub.googleapis.com:443"
if (hostPort !== null) {
return hostPort.host; // this returns "pubsub.googleapis.com"
}
else {
throw new Error(`Failed to parse target ${uri_parser_1.uriToString(target)}`);
}
}
2020-08-29 19:05:42 +08:00
Simon Woolf
141dfeb790
Channel#watchConnectivityState: handle infinite deadlines correctly
...
Per https://grpc.github.io/grpc/node/grpc.html#~Deadline :
"If it is a finite number, it is treated as a number of milliseconds
since the Unix Epoch. If it is Infinity, the deadline will never be
reached. If it is -Infinity, the deadline has already passed."
2020-08-21 18:18:30 +01:00
Michael Lumish
5abb47390f
grpc-js: Move a couple of dev dependencies to prod
2020-08-20 09:24:57 -07:00
Michael Lumish
7efc5358e3
Merge pull request #1524 from murgatroid99/grpc-js_cancelled_event
...
grpc-js: Clean up call even if status throws an error
2020-08-19 10:09:53 -07:00
Michael Lumish
c0b80a3593
Merge pull request #1548 from richardpringle/master
...
Prevent mutation of default headers
2020-08-19 09:55:09 -07:00
Michael Lumish
68b0609feb
Merge pull request #1525 from murgatroid99/grpc-js_server_stream_end_metadata
...
grpc-js: Add end(md?: Metadata) method to streaming server calls
2020-08-19 09:29:52 -07:00
Michael Lumish
4ba1639ed6
Merge pull request #1526 from murgatroid99/grpc-js_get_peer
...
grpc-js: Implement getPeer on the client and server
2020-08-19 09:27:56 -07:00
Richard Pringle
917b4fca77
Prevent mutation of default headers
2020-08-19 10:24:20 -04:00
Michael Lumish
7493052672
grpc-js: Move @types/node to a production dependency
2020-08-18 15:13:12 -07:00
Thomas Hunter II
1583786478
Add link to grpc docs in @grpc/grpc-js README
...
- Adds a link to `grpc` documentation
- Addresses some of the concerns in #1540
2020-08-16 13:50:23 -07:00
Martin
f0ed1aba14
Fix incorrectly named grpc-tools flag
...
Was "--generate_package_definitions" (with an s) but should be "generate_package_definition" as in the documentation here: https://github.com/grpc/grpc-node/tree/master/packages/grpc-tools
2020-08-12 16:51:42 +02:00
Michael Lumish
6c0012499a
Implement onResourceDoesNotExist notifications
2020-08-06 13:30:24 -07:00
Michael Lumish
5dcce9ebf1
grpc-js: XdsClient: separate ADS stream handling by message type
2020-08-06 13:08:59 -07:00
Michael Lumish
76bb17091b
Stop processing RDS requests after finding the matching one
2020-08-05 12:57:54 -07:00
Michael Lumish
0b146c8b07
Address PR comments
2020-08-05 12:38:43 -07:00
Michael Lumish
33a4c85f89
grpc-js: Implement getPeer on the client and server
2020-08-04 13:04:59 -07:00
Michael Lumish
d9b3f9f364
grpc-js: Add end(md?: Metadata) method to streaming server calls
2020-08-04 11:37:08 -07:00
Michael Lumish
ddec63af20
grpc-js: Clean up call even if status throws an error
2020-08-04 11:22:18 -07:00
Michael Lumish
52eb0df1f8
grpc-js: Add XdsResolver and corresponding XdsClient behavior
2020-08-03 10:44:28 -07:00
Michael Lumish
a3b27be211
Address a couple of comments
2020-07-28 15:43:39 -07:00
Michael Lumish
669d254045
grpc-js: Add LrsLoadBalancer class
2020-07-28 11:40:42 -07:00
Michael Lumish
3c948f5d66
Fixes from PR comments
2020-07-27 09:17:06 -07:00
Michael Lumish
9fb6f48bd6
grpc-js: xDS: add support for dropping calls and reporting drops
2020-07-24 16:06:37 -07:00
Michael Lumish
fbf2a487f1
Fix Metadata import path
2020-07-24 09:56:33 -07:00
Michael Lumish
c9074b634c
Finish implementing the CDS load balancer
2020-07-23 14:21:53 -07:00
Michael Lumish
c4c53a6e9b
Merge branch 'master' into grpc-js_cds_lb_policy
2020-07-23 14:02:42 -07:00
Michael Lumish
0236633ac5
Merge pull request #1512 from murgatroid99/grpc-js_default_service_config
...
grpc-js: Fix handling of unsuccessful TXT record lookups
2020-07-23 13:16:53 -07:00
Michael Lumish
f05e9fb3f4
Refine service config error handling
2020-07-23 12:57:13 -07:00
Michael Lumish
1fc0895d17
grpc-js: Fix handling of unsuccessful TXT record lookups
2020-07-23 11:36:38 -07:00
Michael Lumish
3ddfd373c5
Merge pull request #1507 from murgatroid99/grpc-js_eds_lb_policy
...
grpc-js: Implement EDS load balancer
2020-07-23 11:22:11 -07:00
Michael Lumish
fc2fd00da7
grpc-js: xDS Client: cache updates to pass them to new watchers
2020-07-23 10:27:01 -07:00
Michael Lumish
ef225cba30
Handle changing EDS service name, add comments
2020-07-23 10:08:50 -07:00
Michael Lumish
044da58c76
Update with changes from xDS Client PR
2020-07-22 16:38:00 -07:00
Michael Lumish
50b5af09ed
Merge branch 'master' into grpc-js_eds_lb_policy
2020-07-22 16:32:27 -07:00
Michael Lumish
8d759b30ab
Merge pull request #1489 from murgatroid99/grpc-js_xds_client
...
grpc-js: Add XdsClient class
2020-07-22 16:31:35 -07:00
Michael Lumish
301b695d15
Merge pull request #1488 from murgatroid99/grpc-tools_mac_fix
...
grpc-tools: Add compiler flag to fix error on Mac
2020-07-21 11:06:01 -07:00
Michael Lumish
6b03311475
gts fix
2020-07-21 10:10:51 -07:00
Michael Lumish
a3762259a1
Fix generated code errors
2020-07-20 14:32:19 -07:00
Michael Lumish
248479bc22
grpc-js: Implement CDS LB policy
2020-07-20 13:52:02 -07:00
Michael Lumish
f061e4e762
gts fix
2020-07-17 10:37:49 -07:00
Michael Lumish
5e28fb3078
grpc-js: Implement EDS load balancer
2020-07-17 10:35:04 -07:00
Michael Lumish
31b297992b
Merge branch 'master' into grpc-js_eds_lb_policy
2020-07-16 10:02:18 -07:00
Michael Lumish
842757c55f
Fix @types/mocha compatibility issue
2020-07-15 10:36:52 -07:00
Michael Lumish
c0840f1269
Update grpc-tools patch version
2020-07-14 10:16:17 -07:00
Michael Lumish
25b2a27991
Move proto-loader to dev deps temporarily
2020-07-14 09:39:59 -07:00
Michael Lumish
a0b050aa0c
gts fix
2020-07-13 13:11:54 -07:00
Michael Lumish
f91c837058
Update generated code with separate service files
2020-07-13 13:02:47 -07:00
Michael Lumish
bf471a96a6
Generate comments in generated code
2020-07-10 14:24:54 -07:00