64 Commits

Author SHA1 Message Date
Michael Lumish
69d4116057
Merge pull request #1413 from murgatroid99/grpc-js_pick_first_reconnect_fix
grpc-js: Fix pick_first handling of IDLE subchannels.
2020-05-21 10:29:58 -07:00
Michael Lumish
c6deb79269 Test header splitting behavior 2020-05-21 10:12:08 -07:00
Michael Lumish
3d8c9af401 grpc-js: Fix pick_first handling of IDLE subchannels. Also stop reporting IDLE on LB creation 2020-05-08 10:30:56 -07:00
Alexander Fenster
ebfc5c9594 fix: make stream.write() synchronous in server-call 2020-04-22 13:58:26 -07:00
Michael Lumish
e0533363ec Fix "other" resolver test 2020-04-21 10:55:06 -07:00
Michael Lumish
23e2353ea0 Update tests and add new ones 2020-04-21 09:58:34 -07:00
Michael Lumish
ae61562be2
Merge pull request #1364 from murgatroid99/grpc-js_uri_parsing
grpc-js: Use a more structured representation of URIs internally
2020-04-20 12:19:18 -07:00
Michael Lumish
8b16b3b699
Merge pull request #1368 from badsyntax/client-waitforready-fix
grpc-js: Client waitForReady callback fix.  Fixes #1352
2020-04-20 12:18:15 -07:00
Richard Willis
7e381f7f2a grpc-js: Simplify client.waitForReady tests. Refs #1352
No need to add a service to the server to test the client.
2020-04-20 19:14:20 +01:00
Richard Willis
615a3c65b1 grpc-js: Add test for client.waitForReady. Refs #1352 2020-04-18 09:45:22 +01:00
Michael Lumish
dbe98ad090 Fix "other" resovler registration code 2020-04-16 08:34:24 -07:00
Michael Lumish
1cd0ef12f2 Fix target name in "other" resolver test 2020-04-16 07:45:29 -07:00
Michael Lumish
13cc016e4e grpc-js: Use a more structured representation of URIs internally 2020-04-15 18:04:49 -07:00
Patrick Remy
53f3daa685
Revert "grpc-js: allow any for linting globally"
This reverts commit 16ec0f0f6414687a53e9f05d4621b88162a9f1d7 and
replaces tslint-disable statements by eslint-disable.
2020-04-10 11:03:53 +02:00
Patrick Remy
0d927e6872
grpc-js: remove tslint disable statements 2020-04-09 12:10:39 +02:00
Patrick Remy
16ec0f0f64
grpc-js: allow any for linting globally
The any type is purposely used. All functions validate their input at runtime.
2020-04-09 11:52:24 +02:00
Michael Lumish
2f953e4457 grpc-js: Don't wait for TXT record to return DNS lookup result 2020-03-26 16:30:48 -07:00
murgatroid99
ca18cca813 grpc-js: tests: skip checking for IPv6 addresses from DNS servers 2020-03-10 10:47:17 -07:00
Michael Lumish
f2b740f6ce grpc-js: Always return IPv6 addresses from DNS resolver 2020-03-03 10:17:10 -08:00
murgatroid99
1fe6432d92 Differentiate more strongly between TCP and IPC addresses 2020-01-29 16:50:29 -08:00
murgatroid99
c5428c5733 lint and formatting fixes 2020-01-29 09:56:49 -08:00
murgatroid99
57c18382d8 grpc-js: Use an object to represent subchannel addresses 2020-01-29 09:42:13 -08:00
murgatroid99
8af2bc83f8 Don't test irrelevant parts of output 2019-12-12 14:17:46 -08:00
James Sharp
ad9e53ada6
grpc-js: fix explicit ipv6 addresses not resolving correctly 2019-11-22 12:28:57 +00:00
James Sharp
dd414b6ddc
grpc-js: fix error messages truncating at commas 2019-11-20 17:36:05 +00:00
Jared Dellitt
54a95106a6 Change getDefaultAuthority in resolver to look at the registered resolvers instead of registerDefaultResolver function 2019-11-10 18:00:27 -06:00
Natan Sągol
50067fe9c4
style(grpc-js): format files using gts 2019-11-08 08:01:18 +01:00
Natan Sągol
845cfe1bd9
build: add full gts configuration and fix TSLint issues 2019-11-07 22:14:24 +01:00
Michael Lumish
974cb30a27
Merge pull request #1037 from murgatroid99/grpc-js_client_error_construction
Add function for creating errors from statuses
2019-10-09 14:43:32 -07:00
murgatroid99
50a3ead062 Don't test value of error.message 2019-10-09 13:14:30 -07:00
murgatroid99
4e7f4dff17 Also use original call metadata 2019-09-30 15:56:15 -07:00
murgatroid99
ce119ead0b Merge branch 'master' into grpc-js_uds_resolver 2019-09-27 14:24:07 -07:00
murgatroid99
06f6065692 Increase resolver test timeout 2019-09-26 17:06:51 -07:00
murgatroid99
4fb254ddb6 grpc-js: Fix TLS server name handling 2019-09-26 14:32:54 -07:00
murgatroid99
5ab1806b44 Add UDS resolver 2019-09-25 17:53:05 -07:00
Michael Lumish
fe601286e6
Undo domain name change 2019-09-25 10:51:06 -07:00
Michael Lumish
d27ca5d725
Switch to a more reliable domain name with a hyphen
Co-Authored-By: Natan Sągol <m@merlinnot.com>
2019-09-25 09:27:02 -07:00
murgatroid99
9238ad07cb Fix DNS name regex and add tests 2019-09-24 18:22:38 -07:00
murgatroid99
adf7b08096 Merge branch 'master' into grpc-js_disconnect_status 2019-09-24 12:11:03 -07:00
murgatroid99
fba9664f35 Remove fragile test file 2019-09-24 12:09:57 -07:00
Michael Lumish
b05caec567
Merge branch 'master' into name_resolution_load_balancing 2019-09-23 11:03:25 -07:00
Bjorn Stromberg
fc032c0226 grpc-js: Update gts and apply fixes 2019-09-13 12:31:33 +09:00
murgatroid99
049da7e058 Add session.socket to ClientHttp2StreamMock in tests 2019-09-06 14:58:42 -07:00
murgatroid99
b4d848865d Lint fixes 2019-08-28 18:04:43 -07:00
murgatroid99
01977e6e08 Add documentation and error handling 2019-08-28 17:06:14 -07:00
Bjorn Stromberg
110461d78a Add dev-dependencies and fix tests so they exit after running 2019-08-06 15:01:31 +09:00
cjihrig
00b091a1b1
grpc-js: shutdown improvements
This commit maintains a Set of all active sessions. This allows
tryShutdown() to gracefully stop the server properly (as
recommended in the Node HTTP2 documentation). The same Set of
sessions also allows forceShutdown() to be implemented.
2019-06-25 14:04:21 -04:00
cjihrig
4399131bf9
grpc-js: fix lint
This commit makes the linter pass again.
2019-06-25 13:53:37 -04:00
cjihrig
0b4fd1365a
grpc-js: expose Server implementation publicly
This commit exposes the pure JS Server as public API.
2019-06-25 13:53:37 -04:00
Michael Lumish
5b187ba5e8
Merge pull request #908 from murgatroid99/pure_js_goaway_handling
Pure JS: Fixed two bugs with goaway handling
2019-06-07 10:02:13 -07:00