@declaw/sdk 1.1.9 → 1.1.10

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/dist/index.js CHANGED
@@ -129,16 +129,9 @@ function getDispatcher() {
129
129
  }
130
130
  const undici = await import("undici");
131
131
  const connOverride = parseInt(process.env.DECLAW_SDK_CONNECTIONS || "", 10);
132
- const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 256;
133
- const streamsOverride = parseInt(process.env.DECLAW_SDK_MAX_CONCURRENT_STREAMS || "", 10);
134
- const maxConcurrentStreams = Number.isFinite(streamsOverride) && streamsOverride > 0 ? streamsOverride : 1e3;
132
+ const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 64;
135
133
  return new undici.Agent({
136
134
  connections,
137
- // maxConcurrentStreams only matters on H2 connections. undici negotiates
138
- // down to whatever the server advertises in SETTINGS_MAX_CONCURRENT_STREAMS,
139
- // so setting a high value here is safe — it caps the client-side intent,
140
- // server still wins.
141
- maxConcurrentStreams,
142
135
  keepAliveTimeout: 3e4,
143
136
  keepAliveMaxTimeout: 6e4,
144
137
  pipelining: 1,