Commit Graph

856 Commits

Author SHA1 Message Date
Michael Lumish 2062062a5c grpc-js: Add outlier detection LB policy 2022-03-07 13:05:24 -08:00
Dacio Romero a3ecb45132 grpc-js: Return never from functions that always throw 2022-03-01 14:48:25 -08:00
Michael Lumish 55087d21c4 grpc-js: Transition subchannel to TRANSIENT_FAILURE when the socket closes 2022-02-24 09:09:54 -08:00
Michael Lumish d51dfffcfe grpc-js: Add session state logging at call start 2022-02-23 09:50:11 -08:00
Michael Lumish 5bb11e02a0 grpc-js: Increase version to 1.5.5 2022-02-10 10:12:36 -08:00
Yuri Golobokov da66707d3b HTTP/2 flow control tracing
subchannel_flowctrl tracer, if enabled, logs local and remote window
sizes of subchannel's HTTP2 session to debug log on the start of every
call.
2022-02-09 14:58:26 -08:00
Yuri Golobokov ae2a2ac7d0 Add HTTP/2 settings frame tracing.
This adds HTTP/2 settings frame information
to debug logs.
HTTP/2 settings frame contains important information like
max_concurrent_streams and initial_window_size useful for debugging
concurrency, latency, and throughput issues.
2022-02-08 21:52:29 -08:00
Yuri Golobokov 2334ca9dfa Add isTracerEnabled to logging 2022-02-08 21:51:26 -08:00
Michael Lumish f49ed62476 grpc-js: Increase version to 1.5.4 2022-01-31 13:55:07 -08:00
Michael Lumish ba70f7168b grpc-js: Fix exitIdle propagation and DNS IP result backoff 2022-01-31 13:54:40 -08:00
Michael Lumish 27bae2009d grpc-js: Increase version to 1.5.3 2022-01-20 09:36:44 -08:00
Michael Lumish 0a5a2321b4 grpc-js: Fix pick first shutdown reference handling 2022-01-20 09:31:09 -08:00
Michael Lumish 4b3c26382b Add subchannel interface 2022-01-18 12:53:10 -08:00
Michael Lumish b9deb5bc3c grpc-js: Increase version to 1.5.2 2022-01-18 12:35:35 -08:00
Michael Lumish db56e80b21 grpc-js: Add secureConnection error handling in server 2022-01-18 12:35:22 -08:00
Michael Lumish 903cce1df9
Merge pull request #2024 from murgatroid99/grpc-js_dns_backoff
grpc-js: Add backoff to DNS resolution attempts
2022-01-14 11:37:35 -08:00
Oskar Nyberg 500fc2c752 grpc-js: Don't use http_proxy for uds connections 2022-01-14 11:15:29 -08:00
Michael Lumish 80f31bb1c2 grpc-js: Increase version to 1.5.1 2022-01-13 15:58:37 -08:00
Michael Lumish 5a728ffdc5 grpc-js: Add backoff to DNS resolution attempts 2022-01-13 15:58:23 -08:00
Oskar Nyberg c6691c8551 grpc-js: Don't use http_proxy for uds connections 2022-01-13 16:24:48 +01:00
Michael Lumish 6a5b52182f
Merge pull request #1993 from DavyJohnes/fix-class-options-issue
grpc-js: Set provided class options to generated class
2022-01-10 15:49:58 -08:00
Michael Lumish 81ef5e33c4
Merge pull request #1988 from murgatroid99/grpc-js_securecontext_creds
grpc-js: Add credentials.createFromSecureContext
2022-01-10 14:05:58 -08:00
DavyJohnes f6d8f137a2 fix(make-client): set provided serviceName to generated class 2022-01-10 13:54:53 +03:00
Michael Lumish d1762316e2 grpc-js: Document recently-added channel options 2022-01-07 12:21:12 -08:00
Jason Praful c95357ccd1 refactor: added max session memory to docs 2022-01-07 10:56:44 +00:00
Michael Lumish ea1a266dec Update grpc-js and grpc-js-xds to version 1.5.0, and update README 2022-01-06 14:41:37 -08:00
Michael Lumish ba3bd4bdf0
Merge pull request #1996 from josephharrington/patch-1
Document grpc-js supported channel args in readme
2022-01-05 14:36:39 -08:00
Michael Lumish 0dbcbcc320
Merge pull request #2008 from grpc/@grpc/grpc-js@1.4.x
Upmerge more changes from @grpc/grpc js@1.4.x
2022-01-05 14:29:12 -08:00
Joey Harrington 78631cdad8 Document grpc-js supported channel args in readme
This moves the list of supported channel arguments from PACKAGE_COMPARISON.md into the readme, and also adds a link to the package comparison doc.

resolves #1982, resolves #1983
2022-01-04 16:39:20 -08:00
Michael Lumish fba2b9498f Fix end type again for older @types/node versions 2022-01-04 14:00:25 -08:00
Michael Lumish e2dfb8fbcf grpc-js: Increase version to 1.4.6 2022-01-04 12:42:05 -08:00
Michael Lumish 311d22e03e grpc-js: Fix compatibility with @types/node 17.0.6 2022-01-04 12:41:41 -08:00
Michael Lumish fb2ea3af9d
Merge pull request #1986 from murgatroid99/grpc-js_interceptor_metadata_message_order
grpc-js: Preserve order of metadata, messages, and call end with async interceptors
2021-12-16 11:49:55 -08:00
Michael Lumish 33c5abd163 grpc-js: Clean up some dependencies 2021-12-13 14:18:12 -05:00
Michael Lumish 8e53f034d0 grpc-js: Add credentials.createFromSecureContext 2021-12-13 10:05:37 -05:00
Cosmin-Catalin Crisan b12330abfd grpc-js: Send backoffOptions to BackoffTimeout 2021-12-10 20:20:11 +02:00
Michael Lumish 86f3ffd96c grpc-js: Update version to 1.4.5 2021-12-09 16:31:29 -05:00
Michael Lumish 7cccc39218 grpc-js: Preserve order of metadata and messages with async interceptors 2021-12-09 16:14:52 -05:00
Michael Lumish ba375e7371 Skip a test because it behaves weirdly on Mac 2021-12-09 10:48:38 -05:00
Michael Lumish e41b99dffc Fix a couple of issues with tests on Windows 2021-12-09 10:46:03 -05:00
Michael Lumish 20dbaa8e27 Make npm clean scripts platform-agnostic 2021-12-08 14:54:56 -05:00
Michael Lumish c52cb842af Add detailed assertion output for some resolver tests, skip IPv4+IPv6 test 2021-12-08 13:42:50 -05:00
Michael Lumish 40c2f61eba Fix server decompression sequencing, add tracing 2021-12-08 10:27:21 -05:00
Michael Lumish 575c2004f3 Skip some tests to make the Linux test job green 2021-12-06 12:02:52 -05:00
Michael Lumish 8df71f1913 Merge remote-tracking branch 'upstream/@grpc/grpc-js@1.4.x' into grpc-js_1.4_upmerge 2021-12-03 14:47:04 -05:00
Michael Lumish 3106057f5a grpc-js: Don't pass undefined checkServerIdentity 2021-11-17 12:36:38 -08:00
Michael Lumish 472baec1ff grpc-js: Provide full certificate in checkServerIdentity callback 2021-11-15 10:53:31 -08:00
Robert 69428b0445 simplify removal of compression prefix bytes 2021-11-09 21:26:54 -08:00
Michael Lumish 9cdd36f929
Merge branch 'master' into grpc-js_compression_support 2021-11-08 12:17:11 -08:00
Michael Lumish af966f04b8 grpc-js: Remove an extra call to registerChannelzSocket 2021-11-08 09:44:11 -08:00
Robert 96ae102eaf fix path for loading test_service proto 2021-11-05 19:59:03 -07:00
Michael Lumish cea1537c42 Merge remote-tracking branch 'upstream/@grpc/grpc-js@1.4.x' into upmerge_1.4.3 2021-11-05 14:25:42 -07:00
Michael Lumish cb29b6af0f
Merge pull request #1961 from murgatroid99/grpc-js_channelz_disable_fix
grpc-js: Fix handling of grpc.enable_channelz option
2021-11-05 13:53:53 -07:00
Michael Lumish b1be84a021 Make IPv6 parsing code compatible with Node 10 2021-11-05 11:54:15 -07:00
Michael Lumish bb26dcfd1e grpc-js: Fix handling of grpc.enable_channelz option 2021-11-05 10:12:12 -07:00
Michael Lumish 1a60c4f3a9 grpc-js: channelz: Fix algorithm for representing an IPv6 address in binary 2021-11-04 14:11:16 -07:00
Robert c4d7fab13e simplify compression filter handling of server supported encoding headers 2021-11-02 19:17:44 -07:00
Robert deff9d4df9 Merge branch 'grpc-js_compression_support' of github.com:b0b3rt/grpc-node into grpc-js_compression_support 2021-11-01 20:15:18 -07:00
Robert dc9752addc change CompressionAlgorithms to an enum 2021-11-01 19:04:21 -07:00
Robert M 5c61a6a34e
Update packages/grpc-js/src/server-call.ts
Co-authored-by: Michael Lumish <mlumish@google.com>
2021-11-01 18:38:37 -07:00
Robert 9150bdfd24 default to identity header everywhere instead of leaving it undefined 2021-10-29 19:19:09 -07:00
Robert 47bb8b669e move string split down to where it matters 2021-10-28 20:36:29 -07:00
Robert c9659b5158 persist server supported encoding header across compression filter instances 2021-10-28 20:29:47 -07:00
Robert 53a2347e69 only attempt to use custom compression filter when option value is provided 2021-10-26 14:27:07 -07:00
Robert 6ba008110b only attempt to use custom compression filter when option value is provided 2021-10-26 14:25:21 -07:00
Robert M d01ff794fc
Update error message for invalid default_compression_algorithm
Co-authored-by: Michael Lumish <mlumish@google.com>
2021-10-26 14:21:58 -07:00
Robert 25a1806e11 change year in new copyright heade 2021-10-26 14:09:09 -07:00
Robert 7a31b4a65a change test to use write instead of _write 2021-10-26 14:03:14 -07:00
Robert e03c1159ea log a warning when invalid value for grpc.default_compression_algorithm option is provided 2021-10-26 14:01:37 -07:00
Robert 21b09e25ba separate compression algorithms to avoid circular dependency 2021-10-26 13:51:42 -07:00
Robert 6d75ea1ab6 change encoding type from MetadataValue to string 2021-10-26 13:44:03 -07:00
Michael Lumish 91ae2b44b1 grpc-js: Handle undefined socket.localAddress 2021-10-26 13:19:18 -07:00
Michael Lumish c61b9696a1
Merge pull request #1944 from murgatroid99/grpc-js_disable_channelz
grpc-js: Allow users to disable channelz
2021-10-26 13:16:51 -07:00
Michael Lumish 5a49a93065
Merge pull request #1951 from howyi/master
feat(client): export `ServiceClientConstructor` type
2021-10-26 12:56:41 -07:00
Robert d68d94a5f4 re-enable NoCompress flag behavior and check Compressed Flag byte on server 2021-10-25 20:21:48 -07:00
Robert af010071fe have client restore default sendCompression if server doesnt support compression, and fix test file generation 2021-10-25 19:43:40 -07:00
Robert 959503ec94 rewrite CompressionAlgorithms to use numeric keys and export it 2021-10-25 19:14:01 -07:00
Robert 9d70f39b7e remove copied test proto file and modify npm command 2021-10-25 19:00:59 -07:00
Robert 16f1356050 remove unused compression algorithm key value 2021-10-25 18:54:16 -07:00
Robert b2ebbee7d1 revert mistaken accept-encoding client header change 2021-10-25 18:46:14 -07:00
Michael Lumish 8dbeeb1d18 grpc-js: Handle undefined socket.localAddress 2021-10-25 13:29:06 -07:00
Robert cec7e64a2b cleanup test file 2021-10-24 22:21:24 -07:00
Robert 7aa5b62008 grpc-js: Allow per-channel request compression from the client and decompression from the server 2021-10-24 21:46:23 -07:00
howyi 25e21d1fba feat(client): export ServiceClientConstructor,ProtobufTypeDefinition type 2021-10-24 21:14:16 +09:00
Michael Lumish 647654c7c1 grpc-js: Include other causes in ENHANCE_YOUR_CALM translation 2021-10-19 08:33:25 -07:00
Michael Lumish 891a918c85 grpc-js: Allow users to disable channelz 2021-10-18 13:31:08 -07:00
Michael Lumish 5139b107e0 grpc-js: Limit the number of retained channelz trace events 2021-10-18 09:29:43 -07:00
Michael Lumish 24df9a039b grpc-js: Publish missing channelz proto and type files 2021-10-13 11:11:30 -07:00
Michael Lumish 7564f60dcb grpc-js: Add tracing of channel options in channel and subchannel constructors 2021-10-12 12:25:47 -07:00
Michael Lumish 590e94e09d grpc-js: Update package versions for 1.4.0 release 2021-10-11 14:23:05 -07:00
Michael Lumish 16303d9f0b grpc-js: Fix server trace function inconsistency 2021-10-06 14:56:53 -07:00
Michael Lumish 8aec160413
Merge pull request #1924 from murgatroid99/v1.4.x_upmerge_1
Merge 1.4.x branch into master
2021-10-06 10:46:40 -07:00
Michael Lumish 6cea491a3c
Merge pull request #1917 from murgatroid99/grpc-js-xds_test_fixes
grpc-js-xds: A few fixes for xDS tests
2021-09-28 15:48:36 -07:00
Michael Lumish 1eea4b75bd In server.bindAsync, call callback in process.nextTick 2021-09-28 13:14:14 -07:00
Michael Lumish 2756a59495 Add a helper for creating ChannelControlHelper children 2021-09-27 16:12:23 -07:00
Michael Lumish 157882da45 grpc-js-xds: A few fixes for xDS tests 2021-09-27 15:45:22 -07:00
Michael Lumish 8cc5f6cd24 grpc-js: Loosen requirements on channel option types 2021-09-27 12:35:21 -07:00
Michael Lumish fc35615e83 Merge branch 'master' into grpc-js_channelz 2021-09-27 11:44:39 -07:00
Michael Lumish 4b6ea2b781 Add channelz ID to trace logs, add a few trace log lines 2021-09-27 10:47:22 -07:00
Michael Lumish d60c4ea16f Add channelz tests and fix some bugs 2021-09-27 10:46:39 -07:00