3119 Commits

Author SHA1 Message Date
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
Michael Lumish
2111c0ffa9
Merge pull request #1553 from ably-forks/watchconnectivitystate-nodeadline
Channel#watchConnectivityState: handle infinite deadlines correctly
2020-08-24 10:47:11 -07: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
69b197b75b
Merge pull request #1551 from murgatroid99/grpc-js_dependency_fix
grpc-js: Move a couple of dev dependencies to prod
2020-08-20 09:45:05 -07:00
Michael Lumish
5abb47390f grpc-js: Move a couple of dev dependencies to prod @grpc/grpc-js@1.1.5 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
@grpc/grpc-js@1.1.4
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
Michael Lumish
b771b994a8
Merge pull request #1546 from murgatroid99/grpc-js_types_node_dep
grpc-js: Move @types/node to a production dependency
2020-08-19 09:27:36 -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
Michael Lumish
a2f2f448b3
Merge pull request #1541 from tlhunter/patch-1
Add link to grpc docs in @grpc/grpc-js README
2020-08-17 10:09:29 -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
Michael Lumish
e37e4f26c6
Merge pull request #1534 from mavaa/patch-1
Fix incorrectly named grpc-tools flag
2020-08-12 09:46:33 -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
1687e3de07
Merge pull request #1528 from murgatroid99/grpc-js_xds_client_refactor
grpc-js: Refactor the XdsClient class
2020-08-07 10:05:28 -07: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
2388e31f8d
Merge pull request #1522 from murgatroid99/grpc-js_xds_resolver
grpc-js: Add XdsResolver and corresponding XdsClient behavior
2020-08-06 10:00:07 -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
f08d3aefd0
Merge pull request #1517 from murgatroid99/grpc-js_lrs_load_balancer
grpc-js: Add LrsLoadBalancer class
2020-07-30 10:21:12 -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
209c224094
Merge pull request #1514 from murgatroid99/grpc-js_eds_call_dropping
grpc-js: xDS: add support for dropping calls and reporting drops
2020-07-27 14:32:33 -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
1783a0eb9c
Merge pull request #1513 from murgatroid99/grpc-js_cds_lb_policy
grpc-js: CDS load balancer
2020-07-24 10:33:16 -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
@grpc/grpc-js@1.1.3
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
798283e641
Merge pull request #1511 from murgatroid99/grpc-js_xds_client_response_caching
grpc-js: xDS Client: cache updates to pass them to new watchers
2020-07-23 11:18:53 -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
grpc-tools@1.9.1
2020-07-21 11:06:01 -07:00
Michael Lumish
6b03311475 gts fix 2020-07-21 10:10:51 -07:00