iteration-cli 0.7.2 → 0.7.3

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.
@@ -2,13 +2,12 @@ import http from "node:http";
2
2
  import https from "node:https";
3
3
  const MAX_RESPONSE_BYTES = 1024 * 1024;
4
4
  const NULL_BODY_STATUSES = new Set([101, 103, 204, 205, 304]);
5
- // Node's fetch can negotiate HTTP/2 and, after a timed-out request breaks the
6
- // TLS connection, keep handing every later request the destroyed session until
7
- // the process restarts. The collector runs for days, so it uses HTTP/1.1
8
- // connections that are discarded when they fail.
5
+ // Reused connections failed uploads in production: Node's HTTP/2 fetch kept a
6
+ // destroyed session, and kept-alive sockets timed out on ~40 s server waits.
7
+ // See docs/architecture/trace-ingestion.md.
9
8
  const agents = {
10
- "http:": new http.Agent({ keepAlive: true, maxSockets: 2 }),
11
- "https:": new https.Agent({ keepAlive: true, maxSockets: 2 }),
9
+ "http:": new http.Agent({ keepAlive: false }),
10
+ "https:": new https.Agent({ keepAlive: false }),
12
11
  };
13
12
  export const collectorFetch = (input, init = {}) => {
14
13
  const url = new URL(input);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iteration-cli",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",