Skip to content

Instantly share code, notes, and snippets.

View mdouglass's full-sized avatar
🧙

Matthew Douglass mdouglass

🧙
  • Los Angeles, CA
View GitHub Profile
> [email protected] client
> node client.js
send: reset nghttp2_active_outbound_item
send: aob->item = (nil)
stream: adjusting kept idle streams num_idle_streams=0, max=100
stream: adjusting kept idle streams num_idle_streams=0, max=100
send: end transmission of client magic
send: reset nghttp2_active_outbound_item
> [email protected] client
> node client.js
duplexEcho response: { message: 'Hello duplex world!' }
unaryEcho response: { message: 'Hello unary world!' }
duplexEcho error Error: 1 CANCELLED: Cancelled on client
at Object.callErrorFromStatus (/home/matthew/spikes/repro-node-crash/node_modules/@grpc/grpc-js/build/src/call.js:31:26)
at Object.onReceiveStatus (/home/matthew/spikes/repro-node-crash/node_modules/@grpc/grpc-js/build/src/client.js:390:49)
at Object.onReceiveStatus (/home/matthew/spikes/repro-node-crash/node_modules/@grpc/grpc-js/build/src/client-interceptors.js:299:181)
$ export GRPC_TRACE=all
$ export GRPC_VERBOSITY=DEBUG
$ npm run client
> [email protected] client
> node client.js
2021-06-08T14:57:10.853Z | resolving_load_balancer | dns:127.0.0.1:20000 IDLE -> IDLE
2021-06-08T14:57:10.854Z | connectivity_state | dns:127.0.0.1:20000 IDLE -> IDLE
2021-06-08T14:57:10.854Z | dns_resolver | Resolver constructed for target dns:127.0.0.1:20000
2021-06-08T14:57:10.855Z | channel | dns:127.0.0.1:20000 createCall [0] method="/EchoService/DuplexEcho", deadline=Infinity
{
"presets": [
"es2015"
],
"plugins": [
"transform-runtime",
"transform-export-extensions"
]
}
{
"presets": [
"es2015",
],
"plugins": [
"syntax-export-extensions"
]
}
@mdouglass
mdouglass / random.js
Created June 8, 2015 20:38
Little Puzzlers - Fun With Random numbers
describe('randomness', () => {
function rand5() {
let low = 1;
let high = 5;
return Math.floor(Math.random() * (high - low + 1) + low);
}
function createGenerator(min, max, func) {
return { next: func, min, max };

Keybase proof

I hereby claim:

  • I am mdouglass on github.
  • I am mdouglass (https://keybase.io/mdouglass) on keybase.
  • I have a public key whose fingerprint is 7C2D 781B 9303 2C24 C235 3C21 C57A DC9F F3CE 13C9

To claim this, I am signing this object: