tchannel 3.6.24 → 3.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/argstream.js +1 -1
- package/as/http.js +1 -1
- package/as/json.js +1 -1
- package/as/thrift.js +2 -1
- package/benchmarks/bench_server.js +2 -2
- package/benchmarks/compare.js +2 -2
- package/benchmarks/d8_peer_heap.js +1 -1
- package/benchmarks/http/index.js +2 -2
- package/benchmarks/index.js +2 -2
- package/benchmarks/micro/reading-all-important-fields.js +1 -1
- package/benchmarks/micro/reading-arg1-str.js +1 -1
- package/benchmarks/micro/reading-caller-name-str.js +1 -1
- package/benchmarks/micro/reading-service-name-str.js +1 -1
- package/benchmarks/micro/reading-tracing-value.js +1 -1
- package/benchmarks/multi_bench.js +2 -2
- package/benchmarks/peer_heap.js +1 -1
- package/benchmarks/random_sample.js +1 -1
- package/benchmarks/read-bench-config.js +1 -1
- package/benchmarks/relay_server.js +2 -2
- package/benchmarks/trace_server.js +2 -2
- package/bin/adhoc-multi.js +1 -1
- package/bin/adhoc.js +1 -1
- package/channel.js +1 -1
- package/connection.js +1 -1
- package/drain.js +1 -1
- package/endpoint-handler.js +2 -2
- package/errors.js +1 -1
- package/examples/as-thrift.js +1 -1
- package/examples/as_example1.js +2 -1
- package/examples/example1.js +3 -2
- package/examples/example2.js +3 -2
- package/examples/http_egress.js +1 -1
- package/examples/http_ingress.js +1 -1
- package/examples/josh_test_client.js +2 -1
- package/examples/josh_test_server.js +1 -1
- package/examples/keyvalue/client.js +1 -1
- package/examples/keyvalue/server.js +1 -1
- package/examples/legacy_example.js +1 -1
- package/examples/repl_client.js +1 -1
- package/examples/repl_server.js +1 -1
- package/examples/send_test.js +2 -2
- package/examples/term_client.js +1 -1
- package/examples/term_server.js +1 -1
- package/host-port.js +2 -2
- package/hyperbahn/index.js +1 -1
- package/hyperbahn-client.js +1 -1
- package/in_request.js +1 -1
- package/in_response.js +1 -1
- package/lazy_relay.js +6 -1
- package/lib/event_emitter.js +1 -1
- package/lib/lcg.js +1 -1
- package/lib/multicast_ctl.js +1 -1
- package/lib/object_pool.js +1 -1
- package/lib/part-list.js +1 -1
- package/lib/pipeline_streams.js +1 -1
- package/lib/statsd.js +1 -1
- package/monitor.js +1 -1
- package/null-logger.js +2 -2
- package/operations.js +1 -1
- package/out_request.js +1 -1
- package/out_response.js +1 -1
- package/package.json +3 -4
- package/peer.js +1 -1
- package/peer_heap.js +1 -1
- package/peer_score_strategies.js +1 -1
- package/peers_base.js +1 -1
- package/range.js +1 -21
- package/relay_handler.js +1 -1
- package/reqres_states.js +1 -1
- package/request-handler.js +1 -1
- package/request.js +1 -1
- package/retry-flags.js +1 -1
- package/root_peers.js +1 -1
- package/scripts/xlang_test.js +1 -2
- package/service-name-handler.js +2 -2
- package/services.js +1 -1
- package/stat-tags.js +1 -1
- package/streaming_in_request.js +1 -1
- package/streaming_in_response.js +1 -1
- package/streaming_out_request.js +1 -1
- package/streaming_out_response.js +1 -1
- package/sub_peers.js +1 -1
- package/tcollector/reporter.js +2 -2
- package/test/argstream.js +1 -1
- package/test/as-http.js +1 -1
- package/test/as-json.js +1 -1
- package/test/as-thrift.js +1 -1
- package/test/balance_peer_requests.js +1 -1
- package/test/busy.js +1 -1
- package/test/chan_drain.js +1 -1
- package/test/connection-stats.js +1 -1
- package/test/connection-with-statsd.js +1 -1
- package/test/double-response.js +1 -1
- package/test/ephemeral-client.js +1 -1
- package/test/errors.js +1 -1
- package/test/event_emitter.js +1 -1
- package/test/examples.js +1 -1
- package/test/health.js +1 -1
- package/test/hyperbahn-client/constructor.js +1 -1
- package/test/hyperbahn-client/sub-channel.js +1 -1
- package/test/hyperbahn-client/thrift-codec.js +1 -1
- package/test/identify.js +1 -1
- package/test/index.js +1 -1
- package/test/large-send.js +1 -1
- package/test/lazy_conn_handler.js +1 -1
- package/test/lazy_handler.js +1 -1
- package/test/lib/alloc-cluster.js +1 -1
- package/test/lib/barplot.js +1 -1
- package/test/lib/barrier.js +1 -1
- package/test/lib/base2.js +1 -1
- package/test/lib/batch-client.js +1 -1
- package/test/lib/cluster_search.js +1 -1
- package/test/lib/collapsed-assert.js +1 -1
- package/test/lib/count_stream.js +1 -1
- package/test/lib/iter_stream.js +1 -1
- package/test/lib/load_config.js +1 -1
- package/test/lib/peer_score_obs.js +1 -1
- package/test/lib/raw_service.js +1 -1
- package/test/lib/resource_pool.js +1 -1
- package/test/lib/rng_stream.js +1 -1
- package/test/lib/run_server.js +1 -1
- package/test/lib/simple_validators.js +1 -1
- package/test/lib/stream_check.js +1 -1
- package/test/lib/stream_search.js +1 -1
- package/test/lib/test_isolate_search.js +1 -1
- package/test/lib/test_search.js +1 -1
- package/test/max-call-overhead.js +1 -1
- package/test/max_pending.js +1 -1
- package/test/no_frag_arg1.js +1 -1
- package/test/non-zero-ttl.js +1 -1
- package/test/object_pool.js +1 -1
- package/test/peer-to-peer-load-balance.js +1 -1
- package/test/peer.js +1 -1
- package/test/peer_drain.js +1 -1
- package/test/peer_strategies.js +1 -1
- package/test/peers.js +1 -1
- package/test/ping.js +1 -1
- package/test/pool-of-servers.js +1 -1
- package/test/register.js +1 -1
- package/test/regression-conn-double-buildResponse.js +1 -1
- package/test/regression-inOps-leak.js +1 -1
- package/test/regression-listening-on-used-port.js +1 -1
- package/test/relay-clamps-the-ttl.js +1 -1
- package/test/relay-kills-socket-after-timeouts.js +1 -1
- package/test/relay-stats.js +1 -1
- package/test/relay-to-dead.js +1 -1
- package/test/relay-under-timeouts.js +1 -1
- package/test/relay.js +1 -1
- package/test/relay_lazy.js +1 -1
- package/test/request-error-context.js +1 -1
- package/test/request-stats.js +1 -1
- package/test/request-with-statsd.js +1 -1
- package/test/response-stats.js +1 -1
- package/test/response-with-statsd.js +1 -1
- package/test/retry.js +1 -1
- package/test/safe-quit.js +1 -1
- package/test/send.js +1 -1
- package/test/streaming-resp-err.js +1 -1
- package/test/streaming.js +1 -1
- package/test/streaming_bisect.js +1 -1
- package/test/tchannel.js +1 -1
- package/test/tcollector-reporter.js +1 -1
- package/test/time_heap.js +1 -1
- package/test/timeouts.js +1 -1
- package/test/trace/basic_server.js +1 -1
- package/test/trace/lib/basic_server_fixture.js +1 -1
- package/test/trace/lib/server_2_requests_fixture.js +1 -1
- package/test/trace/outpeer_span_handle.js +1 -1
- package/test/trace/server_2_requests.js +2 -2
- package/test/v2/args.js +2 -2
- package/test/v2/call.js +2 -2
- package/test/v2/cancel.js +2 -2
- package/test/v2/checksum.js +2 -2
- package/test/v2/claim.js +2 -2
- package/test/v2/cont.js +2 -2
- package/test/v2/error_response.js +2 -2
- package/test/v2/frame.js +2 -2
- package/test/v2/header.js +2 -2
- package/test/v2/init.js +2 -2
- package/test/v2/lazy_frame.js +2 -2
- package/test/v2/lib/test_body.js +2 -2
- package/test/v2/ping.js +2 -2
- package/test/v2/tracing.js +1 -1
- package/time_heap.js +1 -1
- package/trace/agent.js +1 -1
- package/trace/span.js +1 -1
- package/v1/frame.js +2 -2
- package/v1/handler.js +2 -2
- package/v1/header.js +2 -2
- package/v1/index.js +2 -2
- package/v1/parser.js +2 -2
- package/v2/args.js +1 -1
- package/v2/call.js +2 -2
- package/v2/call_flags.js +1 -1
- package/v2/cancel.js +2 -2
- package/v2/checksum.js +2 -2
- package/v2/claim.js +2 -2
- package/v2/cont.js +1 -1
- package/v2/error_response.js +2 -2
- package/v2/frame.js +2 -2
- package/v2/handler.js +2 -2
- package/v2/header.js +2 -2
- package/v2/index.js +2 -2
- package/v2/init.js +2 -2
- package/v2/lazy_frame.js +1 -1
- package/v2/out_request.js +1 -1
- package/v2/out_response.js +1 -1
- package/v2/ping.js +2 -2
- package/v2/tracing.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
# v3.7.0
|
|
2
|
+
|
|
3
|
+
- Introduces the `allowOptionalArguments` flag for `TChannelAsThrift`, so
|
|
4
|
+
services and clients can opt-in for the looser semantics for fields of Thrift
|
|
5
|
+
argument structs that are not explicitly optional or required. Enabling this
|
|
6
|
+
flag makes argument fields optional by default (they were formerly required
|
|
7
|
+
by default, and optional was not possible to express). Consequently,
|
|
8
|
+
existing IDL should change fields to required, or add null checks to existing
|
|
9
|
+
request handlers.
|
|
10
|
+
- Adds another guard to prevent a dangling reference to a reclaimed Lazy Relay
|
|
11
|
+
Request from throwing an exception upon attempting to follow up with an error
|
|
12
|
+
frame.
|
|
13
|
+
|
|
14
|
+
# v3.6.24
|
|
15
|
+
|
|
16
|
+
- Updated dependencies for compatibility with Node.js 4.
|
|
17
|
+
- Changes the default for peer selection: now uses a heap to choose peers for
|
|
18
|
+
outbound requests. This can be configured with the `choosePeerWithHeap`
|
|
19
|
+
TChannel option.
|
|
20
|
+
- Addresses a problem in lazy relay, which would read the response flags
|
|
21
|
+
instead of the response code, confusing stats.
|
|
22
|
+
- Adds support for tryConnect() on peers, with back-off.
|
|
23
|
+
- Ensures a minimum number of connections for each peer. The intent is to
|
|
24
|
+
eventually support a connections count goal.
|
|
25
|
+
- Fixes a bug in the HTTP argument scheme regarding the Content-Length header.
|
|
26
|
+
- Removes the special cases for the "self" peer. These interfaces have been
|
|
27
|
+
removed. External usage of these private interfaces is not expected.
|
|
28
|
+
- Numerous performance improvements, particularly using object pooling and lazy
|
|
29
|
+
buffer slicing.
|
|
30
|
+
|
|
31
|
+
Hyperbahn:
|
|
32
|
+
|
|
33
|
+
- Adds a Hyperbahn::discover method to the Hyperbahn client, suitable for
|
|
34
|
+
querying available peers for a given service.
|
|
35
|
+
- Now emits stats for error frames produced and forwarded.
|
|
36
|
+
|
|
37
|
+
Thrift:
|
|
38
|
+
|
|
39
|
+
- Relaxes the constraint that application exeptions in the Thrift arg scheme
|
|
40
|
+
must be instances of the JavaScript Error base type.
|
|
41
|
+
- The Thrift argument scheme instance now exposes a `getServiceEndpoints`
|
|
42
|
+
method for introspecting methods.
|
|
43
|
+
- ThriftRW upgraded to version 3.4.3, capturing fixes for lists of lists, and
|
|
44
|
+
maps with integer keys, and adds support for the i8 alias for the byte type.
|
|
45
|
+
|
|
1
46
|
# v3.6.3
|
|
2
47
|
|
|
3
48
|
- Added consistent host port validation in listen(), connect(), and init
|
package/argstream.js
CHANGED
package/as/http.js
CHANGED
package/as/json.js
CHANGED
package/as/thrift.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
2
|
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -51,6 +51,7 @@ function TChannelAsThrift(opts) {
|
|
|
51
51
|
strict: opts.strict,
|
|
52
52
|
allowFilesystemAccess: true,
|
|
53
53
|
allowIncludeAlias: opts.allowIncludeAlias,
|
|
54
|
+
allowOptionalArguments: opts.allowOptionalArguments,
|
|
54
55
|
fs: opts.fs
|
|
55
56
|
});
|
|
56
57
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/benchmarks/compare.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/benchmarks/http/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/benchmarks/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/benchmarks/peer_heap.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/bin/adhoc-multi.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright (c)
|
|
2
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
// of this software and associated documentation files (the "Software"), to deal
|
package/bin/adhoc.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
// Copyright (c)
|
|
2
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
3
3
|
//
|
|
4
4
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
5
|
// of this software and associated documentation files (the "Software"), to deal
|
package/channel.js
CHANGED
package/connection.js
CHANGED
package/drain.js
CHANGED
package/endpoint-handler.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/errors.js
CHANGED
package/examples/as-thrift.js
CHANGED
package/examples/as_example1.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
2
|
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
|
+
|
|
20
21
|
'use strict';
|
|
21
22
|
|
|
22
23
|
var assert = require('assert');
|
package/examples/example1.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
|
+
|
|
20
21
|
'use strict';
|
|
21
22
|
/*eslint no-console: 0*/
|
|
22
23
|
|
package/examples/example2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
|
+
|
|
20
21
|
'use strict';
|
|
21
22
|
/*eslint no-console: 0*/
|
|
22
23
|
|
package/examples/http_egress.js
CHANGED
package/examples/http_ingress.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
2
|
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
18
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
// THE SOFTWARE.
|
|
20
|
+
|
|
20
21
|
'use strict';
|
|
21
22
|
|
|
22
23
|
var argv = require('minimist')(process.argv.slice(2));
|
package/examples/repl_client.js
CHANGED
package/examples/repl_server.js
CHANGED
package/examples/send_test.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/examples/term_client.js
CHANGED
package/examples/term_server.js
CHANGED
package/host-port.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/hyperbahn/index.js
CHANGED
package/hyperbahn-client.js
CHANGED
package/in_request.js
CHANGED
package/in_response.js
CHANGED
package/lazy_relay.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright (c)
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
2
|
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
@@ -453,6 +453,11 @@ LazyRelayInReq.prototype.sendErrorFrame =
|
|
|
453
453
|
function sendErrorFrame(codeName, message) {
|
|
454
454
|
var self = this;
|
|
455
455
|
|
|
456
|
+
// ObjectPool weird free() issue; bail early
|
|
457
|
+
if (!self.channel) {
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
|
|
456
461
|
var now = self.channel.timers.now();
|
|
457
462
|
self._observeInboundErrorFrame(now, codeName);
|
|
458
463
|
|
package/lib/event_emitter.js
CHANGED
package/lib/lcg.js
CHANGED
package/lib/multicast_ctl.js
CHANGED
package/lib/object_pool.js
CHANGED
package/lib/part-list.js
CHANGED
package/lib/pipeline_streams.js
CHANGED
package/lib/statsd.js
CHANGED
package/monitor.js
CHANGED
package/null-logger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// Copyright (c)
|
|
2
|
-
|
|
1
|
+
// Copyright (c) 2016 Uber Technologies, Inc.
|
|
2
|
+
//
|
|
3
3
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
4
|
// of this software and associated documentation files (the "Software"), to deal
|
|
5
5
|
// in the Software without restriction, including without limitation the rights
|
package/operations.js
CHANGED
package/out_request.js
CHANGED
package/out_response.js
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "tchannel",
|
|
3
3
|
"description": "network multiplexing and framing protocol for RPC or parser drag racing",
|
|
4
4
|
"author": "mranney@uber.com",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.7.0",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"lint": "eslint $(git ls-files | grep '.js$')",
|
|
8
8
|
"travis": "npm run test",
|
|
@@ -43,12 +43,11 @@
|
|
|
43
43
|
"safe-json-parse": "^4.0.0",
|
|
44
44
|
"sse4_crc32": "4.1.1",
|
|
45
45
|
"tape-cluster": "2.1.0",
|
|
46
|
-
"thriftrw": "^3.
|
|
46
|
+
"thriftrw": "^3.5.0",
|
|
47
47
|
"xorshift": "^0.2.0",
|
|
48
48
|
"xtend": "^4.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"ansi-color": "^0.2.1",
|
|
52
51
|
"async": "^0.9.0",
|
|
53
52
|
"chalk": "^1.0.0",
|
|
54
53
|
"child_pty": "3.0.1",
|
|
@@ -72,7 +71,7 @@
|
|
|
72
71
|
"tape": "^4.0.0",
|
|
73
72
|
"through2": "^0.6.3",
|
|
74
73
|
"time-mock": "^0.1.2",
|
|
75
|
-
"uber-licence": "^
|
|
74
|
+
"uber-licence": "^2.0.0",
|
|
76
75
|
"uber-statsd-client": "1.3.2"
|
|
77
76
|
},
|
|
78
77
|
"pre-commit": [],
|
package/peer.js
CHANGED
package/peer_heap.js
CHANGED